Partager via


IUpdateServer.ImportUpdateFromCatalogSite Method (String, String )

 

Applies To: Windows Server Update Services

Imports an update and all of its prerequisites and bundle dependencies.

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

Syntax

void ImportUpdateFromCatalogSite(
    string updateId,
    string[] downloadedFilePaths
)
void ImportUpdateFromCatalogSite(
    String^ updateId,
    array<String^>^ downloadedFilePaths
)
abstract ImportUpdateFromCatalogSite : 
        updateId:string *
        downloadedFilePaths:string[] -> unit
Sub ImportUpdateFromCatalogSite (
    updateId As String,
    downloadedFilePaths As String()
)

Parameters

  • updateId
    Type: System.String

    The ID of the update to be imported.

  • downloadedFilePaths
    Type: System.String[]

    An array of the local paths where any files required by the update can be found. The files must exist at the time when the method is called. They are copied to the proper location in the local content store.

Remarks

If the update requires content files that are not available from Microsoft Update, they are downloaded by the catalog site to a local path before calling this method. An update imported by this method will be flagged appropriately so that newer revisions can be synchronized later, even when the update does not match the categories/classifications filter of the synchronization settings.

This operation requires WSUS Administrator privileges.

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top