Costruttore Condition (PolicyStore, String)
Initializes a new instance of the Policy class.
Spazio dei nomi Microsoft.SqlServer.Management.Dmf
Assembly: Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)
Sintassi
'Dichiarazione
Public Sub New ( _
parent As PolicyStore, _
name As String _
)
'Utilizzo
Dim parent As PolicyStore
Dim name As String
Dim instance As New Condition(parent, _
name)
public Condition(
PolicyStore parent,
string name
)
public:
Condition(
PolicyStore^ parent,
String^ name
)
new :
parent:PolicyStore *
name:string -> Condition
public function Condition(
parent : PolicyStore,
name : String
)
Parametri
- parent
Tipo: Microsoft.SqlServer.Management.Dmf. . :: . .PolicyStore
A Policy object value that specifies the policy store to which the condition belongs.
- name
Tipo: System. . :: . .String
A String value that specifies the name of the condition.
Esempi
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()
Vedere anche