Поделиться через


Свойство PolicyCategories

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

Пространство имен:  Microsoft.SqlServer.Management.Dmf
Сборка:  Microsoft.SqlServer.Dmf (в Microsoft.SqlServer.Dmf.dll)

Синтаксис

'Декларация
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(PolicyCategory))> _
Public ReadOnly Property PolicyCategories As PolicyCategoryCollection
    Get
'Применение
Dim instance As PolicyStore
Dim value As PolicyCategoryCollection

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

Значение свойства

Тип: Microsoft.SqlServer.Management.Dmf. . :: . .PolicyCategoryCollection
A PolicyCategoryCollection object that represents all the policy categories that are defined on the policy store.

Замечания

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