Partilhar via


Método PolicyEvaluationWrapper.EvaluateAutomatedPolicy

Evaluates an automated policy.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.DmfSqlClrWrapper (em Microsoft.SqlServer.DmfSqlClrWrapper.dll)

Sintaxe

'Declaração
Public Shared Function EvaluateAutomatedPolicy ( _
    policy As String, _
    eventData As SqlXml, _
    ByRef historyId As Long _
) As Integer
'Uso
Dim policy As String 
Dim eventData As SqlXml 
Dim historyId As Long 
Dim returnValue As Integer 

returnValue = PolicyEvaluationWrapper.EvaluateAutomatedPolicy(policy, _
    eventData, historyId)
public static int EvaluateAutomatedPolicy(
    string policy,
    SqlXml eventData,
    ref long historyId
)
public:
static int EvaluateAutomatedPolicy(
    String^ policy, 
    SqlXml^ eventData, 
    long long% historyId
)
static member EvaluateAutomatedPolicy : 
        policy:string * 
        eventData:SqlXml * 
        historyId:int64 byref -> int
public static function EvaluateAutomatedPolicy(
    policy : String, 
    eventData : SqlXml, 
    historyId : long
) : int

Parâmetros

  • eventData
    Tipo: System.Data.SqlTypes.SqlXml
    A SqlXml system object value that contains the events generated when evaluating the policy.
  • historyId
    Tipo: System.Int64%
    An Int64 value that contains the evaluation history ID value.

Valor de retorno

Tipo: System.Int32
An Int32 value that determines the success of the policy evaluation.

Comentários

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.

Consulte também

Referência

PolicyEvaluationWrapper Classe

Namespace Microsoft.SqlServer.Management.Dmf