IUpdateServer.ExportPackageMetadata Method (UpdateRevisionId, String)
Applies To: Windows Server Update Services
Exports the file for a locally-published update. This makes it possible to retrieve the package metadata for a detectoid update.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
void ExportPackageMetadata(
UpdateRevisionId id,
string fileName
)
void ExportPackageMetadata(
UpdateRevisionId^ id,
String^ fileName
)
abstract ExportPackageMetadata :
id:UpdateRevisionId *
fileName:string -> unit
Sub ExportPackageMetadata (
id As UpdateRevisionId,
fileName As String
)
Parameters
id
Type: Microsoft.UpdateServices.Administration.UpdateRevisionIdAn UpdateRevisionId object that identifies the update from which to export the SDP.
fileName
Type: System.StringThe full path and filename of the update file.
Exceptions
Exception
Condition
The update to be exported is not a locally-published update and has no saved SDP information, or the specific revision is missing from the WSUS database.
id or fileName is null.
id is not valid.
The revision number is 0 and the update doesn't exist in the database, so that the latest revision of the update cannot be retrieved.
Remarks
[This method can be found only in the API delivered with WSUS 3.0 SP1.] This method can throw many other exception types 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
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace
Return to top