Conditions 属性

Represents a collection of Condition objects. Each Condition object represents a policy-based Management condition.

命名空间:  Microsoft.SqlServer.Management.Dmf
程序集:  Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)

语法

声明
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Condition))> _
Public ReadOnly Property Conditions As ConditionCollection
    Get
用法
Dim instance As PolicyStore
Dim value As ConditionCollection

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

属性值

类型:Microsoft.SqlServer.Management.Dmf. . :: . .ConditionCollection
A ConditionCollection object that represents all the conditions that are defined on the policy store.

注释

This collection can reference specific conditions by specifying the name of the condition. To add a new condition to the collection, call the condition constructor Condition.