ClientServicingProxy.GetPackageMetadataSet Method (UpdateCategoryCollection, UpdateClassificationCollection)
Gets metadata for: 1) the specified categories, subcategories, and classifications; 2) the updates belonging to those categories and classifications; 3) all prerequisites referenced by those updates. This method always returns information for all packages, regardless of when they last changed.
Namespace: Microsoft.UpdateServices.ClientServicing
Assembly: Microsoft.UpdateServices.ClientServicing (in Microsoft.UpdateServices.ClientServicing.dll)
Usage
Syntax
'Declaration
Public Function GetPackageMetadataSet ( _
categories As UpdateCategoryCollection, _
classifications As UpdateClassificationCollection _
) As PackageMetadataSet
public PackageMetadataSet GetPackageMetadataSet (
UpdateCategoryCollection categories,
UpdateClassificationCollection classifications
)
public:
PackageMetadataSet^ GetPackageMetadataSet (
UpdateCategoryCollection^ categories,
UpdateClassificationCollection^ classifications
)
public PackageMetadataSet GetPackageMetadataSet (
UpdateCategoryCollection categories,
UpdateClassificationCollection classifications
)
public function GetPackageMetadataSet (
categories : UpdateCategoryCollection,
classifications : UpdateClassificationCollection
) : PackageMetadataSet
Parameters
- categories
The categories for which to retrieve information. Passing a null or empty collection is equivalent to passing all categories.
- classifications
The update classifications for which to retrieve information. Passing a null or empty collection is equivalent to passing all classifications.
Return Value
A PackageMetadataSet object containing metadata for the specified categories, 1) the specified categories, subcategories, and classifications; 2) the updates belonging to those categories and classifications; 3) all prerequisites referenced by those updates. The PackageMetadataSet also contains a cookie that can be used the next time GetPackageMetadataSet is called.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | Either categories or classifications (or both) contains a member that is null. |
Remarks
This is equivalent to GetPackageMetadataSet(categories, classifications, null).
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
See Also
Reference
ClientServicingProxy Class
ClientServicingProxy Members
Microsoft.UpdateServices.ClientServicing Namespace