ObjectSet.CalculateTargets 메서드 (SqlStoreConnection, Condition, AdHocPolicyEvaluationMode, String, array<Object[]%, array<TargetEvaluation %)
Calculates an expression with results applied to the targets.
네임스페이스: Microsoft.SqlServer.Management.Dmf
어셈블리: Microsoft.SqlServer.Dmf(Microsoft.SqlServer.Dmf.dll)
구문
‘선언
Public Sub CalculateTargets ( _
targetConnection As SqlStoreConnection, _
condition As Condition, _
evaluationMode As AdHocPolicyEvaluationMode, _
policyCategory As String, _
<OutAttribute> ByRef conforming As Object(), _
<OutAttribute> ByRef violating As TargetEvaluation() _
)
‘사용 방법
Dim instance As ObjectSet
Dim targetConnection As SqlStoreConnection
Dim condition As Condition
Dim evaluationMode As AdHocPolicyEvaluationMode
Dim policyCategory As String
Dim conforming As Object()
Dim violating As TargetEvaluation()
instance.CalculateTargets(targetConnection, _
condition, evaluationMode, policyCategory, _
conforming, violating)
public void CalculateTargets(
SqlStoreConnection targetConnection,
Condition condition,
AdHocPolicyEvaluationMode evaluationMode,
string policyCategory,
out Object[] conforming,
out TargetEvaluation[] violating
)
public:
void CalculateTargets(
SqlStoreConnection^ targetConnection,
Condition^ condition,
AdHocPolicyEvaluationMode evaluationMode,
String^ policyCategory,
[OutAttribute] array<Object^>^% conforming,
[OutAttribute] array<TargetEvaluation^>^% violating
)
member CalculateTargets :
targetConnection:SqlStoreConnection *
condition:Condition *
evaluationMode:AdHocPolicyEvaluationMode *
policyCategory:string *
conforming:Object[] byref *
violating:TargetEvaluation[] byref -> unit
public function CalculateTargets(
targetConnection : SqlStoreConnection,
condition : Condition,
evaluationMode : AdHocPolicyEvaluationMode,
policyCategory : String,
conforming : Object[],
violating : TargetEvaluation[]
)
매개 변수
- targetConnection
유형: Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection
A ISfcConnection object.
- condition
유형: Microsoft.SqlServer.Management.Dmf.Condition
A Condition object.
- evaluationMode
유형: Microsoft.SqlServer.Management.Dmf.AdHocPolicyEvaluationMode
An AdHocPolicyEvaluationMode object.
- policyCategory
유형: System.String
A string value that specifies the policy.
- conforming
유형: array<System.Object[]%
A pointer to Object array.
- violating
유형: array<Microsoft.SqlServer.Management.Dmf.TargetEvaluation[]%
A pointer to TargetEvaluation array.