EvaluateAutomatedPolicy 메서드

Evaluates an automated policy.

네임스페이스:  Microsoft.SqlServer.Management.Dmf
어셈블리:  Microsoft.SqlServer.DmfSqlClrWrapper(Microsoft.SqlServer.DmfSqlClrWrapper.dll)

구문

‘선언
Public Shared Function EvaluateAutomatedPolicy ( _
    policy As String, _
    eventData As SqlXml, _
    ByRef historyId As Long _
) As Integer
‘사용 방법
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

매개 변수

반환 값

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

주의

이 네임스페이스, 클래스 또는 멤버는 Microsoft .NET Framework 2.0 버전에서만 지원됩니다.