SoftwareMetadata.Approvals Property
Gets the list of approvals for this package.
Namespace: Microsoft.UpdateServices.ClientServicing
Assembly: Microsoft.UpdateServices.ClientServicing (in Microsoft.UpdateServices.ClientServicing.dll)
Usage
Syntax
'Declaration
Public ReadOnly Property Approvals As ReadOnlyCollection(Of PackageApproval)
public ReadOnlyCollection<PackageApproval> Approvals { get; }
public:
property ReadOnlyCollection<PackageApproval^>^ Approvals {
ReadOnlyCollection<PackageApproval^>^ get ();
}
/** @property */
public ReadOnlyCollection<PackageApproval> get_Approvals ()
public function get Approvals () : ReadOnlyCollection<PackageApproval>
Property Value
The list of approvals for this package. The list is sorted in order of descending priority.
Remarks
To determine the effective approval action of this package on a given
client, do the following:
1) Get the set of target groups to which the client belongs.
2) Iterate over the set of approvals in the order in which it was returned, searching for an approval that matches one of the target groups to which the client belongs.
3) Stop searching when the first match is found. This is the effective approval for this client.
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
SoftwareMetadata Class
SoftwareMetadata Members
Microsoft.UpdateServices.ClientServicing Namespace