Export (0) Print
Expand All

Condition Constructor (PolicyStore, String)

Initializes a new instance of the Policy class.

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

public Condition(
	PolicyStore parent,
	string name
)

Parameters

parent
Type: Microsoft.SqlServer.Management.Dmf.PolicyStore
A Policy object value that specifies the policy store to which the condition belongs.
name
Type: String
A String value that specifies the name of the condition.

C#

Condition c = new Condition(ps, conditionName);
c.Facet = facet;
c.ExpressionNode = exprNode;
c.Create();

VB

Dim c As Condition
c = New Condition(ps, conditionName)
c.Facet = facet
c.ExpressionNode = exprNode
c.Create()

Community Additions

ADD
Show:
© 2014 Microsoft