IPublisher.PublishPackage Method (String, String)

 

Applies To: Windows Server Update Services

Publishes a new package to the WSUS server.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

void PublishPackage(
    string sourcePath,
    string packageDirectoryName
)
void PublishPackage(
    String^ sourcePath,
    String^ packageDirectoryName
)
abstract PublishPackage : 
        sourcePath:string *
        packageDirectoryName:string -> unit
Sub PublishPackage (
    sourcePath As String,
    packageDirectoryName As String
)

Parameters

  • sourcePath
    Type: System.String

    Location of the source files to use to copy the InstallableItem InstallPointDirectory.

  • packageDirectoryName
    Type: System.String

    Optional name to use for the Package directory under the Applications server path. Can be null, in which case the directory name will be the Title_PackageId.

Remarks

This operation requires WSUS Administrator privileges.

See Also

PublishPackage Overload
IPublisher Interface
Microsoft.UpdateServices.Administration Namespace

Return to top