ClientServicingProxy.HasPackageMetadataChanged Method
Determines whether or not there have been any package metadata changes since the time indicated by the provided MetadataStateCookie.
Namespace: Microsoft.UpdateServices.ClientServicing
Assembly: Microsoft.UpdateServices.ClientServicing (in Microsoft.UpdateServices.ClientServicing.dll)
Usage
Syntax
'Declaration
Public Function HasPackageMetadataChanged ( _
cookie As MetadataStateCookie _
) As Boolean
public bool HasPackageMetadataChanged (
MetadataStateCookie cookie
)
public:
bool HasPackageMetadataChanged (
MetadataStateCookie^ cookie
)
public boolean HasPackageMetadataChanged (
MetadataStateCookie cookie
)
public function HasPackageMetadataChanged (
cookie : MetadataStateCookie
) : boolean
Parameters
- cookie
The MetadataStateCookie from an earlier call to GetPackageMetadataSet.
Return Value
true if packages have been added, removed, or modified since the time indicated by the MetadataStateCookie, false if no such changes have been made.
Exceptions
| Exception type | Condition |
|---|---|
| ArgumentNullException | cookie is null. |
| InvalidCookieException | cookie is not valid for this update server. |
Remarks
If this method returns false, then calling GetPackageMetadataSet with the same cookie would yield an empty list of packages. If this method returns true, then calling GetPackageMetadataSet with the same cookie may or may not yield a nonempty list of packages, depending on the categories and classifications requested.
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