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: System.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()
Return to top
Show: