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
參數
- policy
型別:System. . :: . .String
A String value that specifies the policy to evaluate.
- eventData
型別:System.Data.SqlTypes. . :: . .SqlXml
A SqlXml system object value that contains the events generated when evaluating the policy.
- historyId
型別:System. . :: . .Int64%
An Int64 value that contains the evaluation history ID value.
傳回值
型別:System. . :: . .Int32
An Int32 value that determines the success of the policy evaluation.
備註
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。