IUpdate.ExportPackageMetadata Method (String)

 

Applies To: Windows Server Update Services

Exports an SDP file for a locally published update.

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

Syntax

void ExportPackageMetadata(
    string fileName
)
void ExportPackageMetadata(
    String^ fileName
)
abstract ExportPackageMetadata : 
        fileName:string -> unit
Sub ExportPackageMetadata (
    fileName As String
)

Parameters

  • fileName
    Type: System.String

    Full Path and Filename to write the SDP file

Exceptions

Exception

Condition

InvalidOperationException

when the Update to be exported is not a locally published update and has no save SDP information

ArgumentNullException

fileName is null.

Remarks

This method can throw many other exceptions when trying to write to the specified location. See the documentation for the StreamWriter class and its constructor.

This operation requires WSUS Administrator privileges.

See Also

IUpdate Interface
Microsoft.UpdateServices.Administration Namespace

Return to top