Właściwość PolicyStore.Policies
Przestrzeń nazw: Microsoft.SqlServer.Management.Dmf
Zestaw: Microsoft.SqlServer.Dmf (w Microsoft.SqlServer.Dmf.dll)
Składnia
'Deklaracja
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, _
GetType(Policy))> _
Public ReadOnly Property Policies As PolicyCollection
Get
'Użycie
Dim instance As PolicyStore
Dim value As PolicyCollection
value = instance.Policies
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,
typeof(Policy))]
public PolicyCollection Policies { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny,
typeof(Policy))]
public:
property PolicyCollection^ Policies {
PolicyCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,
typeof(Policy))>]
member Policies : PolicyCollection
function get Policies () : PolicyCollection
Wartość właściwości
Typ: Microsoft.SqlServer.Management.Dmf.PolicyCollection
A PolicyCollection obiekt, który reprezentuje wszystkie zasady, które są zdefiniowane w magazynie zasad.
Uwagi
Ustawia to kolekcja odwołania określonego obiektu, określając nazwę zasady.Aby dodać nową zasadę do kolekcja, wywołanie konstruktora zasad Policy.