Поделиться через


Конструктор Condition (PolicyStore, String)

Initializes a new instance of the Policy class.

Пространство имен:  Microsoft.SqlServer.Management.Dmf
Сборка:  Microsoft.SqlServer.Dmf (в Microsoft.SqlServer.Dmf.dll)

Синтаксис

'Декларация
Public Sub New ( _
    parent As PolicyStore, _
    name As String _
)
'Применение
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
)

Параметры

Примеры

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()