Construtor Policy
Initializes a new instance of the Policy class.
Namespace: Microsoft.SqlServer.Management.Dmf
Assembly: Microsoft.SqlServer.Dmf (em Microsoft.SqlServer.Dmf.dll)
Sintaxe
'Declaração
Public Sub New
'Uso
Dim instance As New Policy()
public Policy()
public:
Policy()
new : unit -> Policy
public function Policy()
Comentários
O construtor padrão inicializa quaisquer campos com seus valores padrão.
Exemplos
C#
Policy p = new Policy(ps, policyName);
p.AutomatedPolicyEvaluationMode = execMode;
p.Condition = condition.Name;
p.ScheduleUid = schedule.ScheduleUid;
if (execMode != AutomatedPolicyEvaluationMode.None) p.Enabled = true;
p.Create();