Evaluate Método (AdHocPolicyEvaluationMode, Object[])
Immediately executes the policy against the specified target objects by using the specified evaluation mode.
Espacio de nombres: Microsoft.SqlServer.Management.Dmf
Ensamblado: Microsoft.SqlServer.Dmf (en Microsoft.SqlServer.Dmf.dll)
Sintaxis
'Declaración
Public Function Evaluate ( _
evaluationMode As AdHocPolicyEvaluationMode, _
ParamArray targetObjects As Object() _
) As Boolean
'Uso
Dim instance As Policy
Dim evaluationMode As AdHocPolicyEvaluationMode
Dim targetObjects As Object()
Dim returnValue As Boolean
returnValue = instance.Evaluate(evaluationMode, _
targetObjects)
public bool Evaluate(
AdHocPolicyEvaluationMode evaluationMode,
params Object[] targetObjects
)
public:
bool Evaluate(
AdHocPolicyEvaluationMode evaluationMode,
... array<Object^>^ targetObjects
)
member Evaluate :
evaluationMode:AdHocPolicyEvaluationMode *
targetObjects:Object[] -> bool
public function Evaluate(
evaluationMode : AdHocPolicyEvaluationMode,
... targetObjects : Object[]
) : boolean
Parámetros
- evaluationMode
Tipo: Microsoft.SqlServer.Management.Dmf. . :: . .AdHocPolicyEvaluationMode
An AdHocPolicyEvaluationMode object that specifies the evaluation mode to use when the policy executes against the specified target.
- targetObjects
Tipo: array<System. . :: . .Object> [] () [] []
An array<Object>[]()[][] object that specifies target objects.
Valor devuelto
Tipo: System. . :: . .Boolean
A Boolean value that verifies whether the policy was executed successfully.
If True, the policy was executed successfully. Otherwise, False.
Notas
This ignores all target filters and policy groups. This will throw an exception if the query expression isn’t a single object.
Este espacio de nombres, clase o miembro solo se admite en la versión 2.0 de Microsoft .NET Framework.
Vea también