PolicyEvaluationWrapper.EvaluateAutomatedPolicy(String, SqlXml, Int64) PolicyEvaluationWrapper.EvaluateAutomatedPolicy(String, SqlXml, Int64) PolicyEvaluationWrapper.EvaluateAutomatedPolicy(String, SqlXml, Int64) Method

Definition

Evaluates an automated policy.

public:
 static int EvaluateAutomatedPolicy(System::String ^ policy, System::Data::SqlTypes::SqlXml ^ eventData, long % historyId);
public static int EvaluateAutomatedPolicy (string policy, System.Data.SqlTypes.SqlXml eventData, ref long historyId);
Public Shared Function EvaluateAutomatedPolicy (policy As String, eventData As SqlXml, ByRef historyId As Long) As Integer
Parameters
policy
String String String

A String value that specifies the policy to evaluate.

eventData
SqlXml SqlXml SqlXml

A SqlXml system object value that contains the events generated when evaluating the policy.

historyId
Int64 Int64 Int64

An Int64 value that contains the evaluation history ID value.

Returns

An Int32 value that determines the success of the policy evaluation.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Applies to