Sdílet prostřednictvím


PolicyStore.PolicyCategorySubscriptions Property

Represents a collection of PolicyCategorySubscription objects. Each PolicyCategorySubscription object represents a policy-based Management policy category subscription.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(PolicyCategorySubscription))> _
Public ReadOnly Property PolicyCategorySubscriptions As PolicyCategorySubscriptionCollection 
    Get
'Usage
Dim instance As PolicyStore 
Dim value As PolicyCategorySubscriptionCollection 

value = instance.PolicyCategorySubscriptions
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(PolicyCategorySubscription))]
public PolicyCategorySubscriptionCollection PolicyCategorySubscriptions { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(PolicyCategorySubscription))]
public:
property PolicyCategorySubscriptionCollection^ PolicyCategorySubscriptions {
    PolicyCategorySubscriptionCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(PolicyCategorySubscription))>]
member PolicyCategorySubscriptions : PolicyCategorySubscriptionCollection
function get PolicyCategorySubscriptions () : PolicyCategorySubscriptionCollection

Property Value

Type: Microsoft.SqlServer.Management.Dmf.PolicyCategorySubscriptionCollection
A PolicyCategorySubscriptionCollection object that represents all the policy category subscriptions that are defined on the policy store.

Remarks

This collection references specific object sets by specifying the name of the policy category subscription. To add a new policy category subscription to the collection, call the policy category subscription constructor PolicyCategorySubscription.

See Also

Reference

PolicyStore Class

Microsoft.SqlServer.Management.Dmf Namespace