Udostępnij przez


Metoda PolicyEvaluationWrapper.EvaluateAutomatedPolicy

Ocenia zasad automatycznego.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Dmf
Zestaw:  Microsoft.SqlServer.DmfSqlClrWrapper (w Microsoft.SqlServer.DmfSqlClrWrapper.dll)

Składnia

'Deklaracja
Public Shared Function EvaluateAutomatedPolicy ( _
    policy As String, _
    eventData As SqlXml, _
    ByRef historyId As Long _
) As Integer
'Użycie
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

Parametry

  • eventData
    Typ: System.Data.SqlTypes.SqlXml
    A SqlXml wartość obiektu systemu zawierający zdarzenia generowane podczas szacowania zasad.

Wartość zwracana

Typ: System.Int32
Int32 Wartość Określa sukces zasady oceny.

Uwagi

Ten obszar nazw, klasa lub element członkowski jest obsługiwany tylko w wersji 2.0 programu Microsoft .NET Framework.