ObjectSet.CalculateTargets ObjectSet.CalculateTargets ObjectSet.CalculateTargets Method

Definition

Calculates an expression with results applied to the targets.

Overloads

CalculateTargets(ISfcConnection) CalculateTargets(ISfcConnection) CalculateTargets(ISfcConnection)

Calculates an expression with results applied to the targets.

CalculateTargets(ISfcConnection, SfcQueryExpression) CalculateTargets(ISfcConnection, SfcQueryExpression)

Indicates an expression to calculate with results applied to the targets.

CalculateTargets(SqlStoreConnection, String) CalculateTargets(SqlStoreConnection, String)

Calculates an expression with results applied to the targets.

CalculateTargets(SqlStoreConnection, Condition, AdHocPolicyEvaluationMode, String, Object[], TargetEvaluation[]) CalculateTargets(SqlStoreConnection, Condition, AdHocPolicyEvaluationMode, String, Object[], TargetEvaluation[])

Calculates an expression with results applied to the targets.

CalculateTargets(ISfcConnection) CalculateTargets(ISfcConnection) CalculateTargets(ISfcConnection)

Calculates an expression with results applied to the targets.

public:
 System::Collections::IEnumerable ^ CalculateTargets(Microsoft::SqlServer::Management::Common::ISfcConnection ^ targetConnection);
public System.Collections.IEnumerable CalculateTargets (Microsoft.SqlServer.Management.Common.ISfcConnection targetConnection);
Public Function CalculateTargets (targetConnection As ISfcConnection) As IEnumerable
Parameters
targetConnection
Microsoft.SqlServer.Management.Common.ISfcConnection Microsoft.SqlServer.Management.Common.ISfcConnection Microsoft.SqlServer.Management.Common.ISfcConnection

The target connection

Returns

Returns a collection of target object.

Remarks

The ObjectSet object represents a policy-based management set of objects. A target object set is the resulting set of target objects after applying a filter to an instance of SQL Server. Using a Filter object, you can create a Urn object which you can use to create an XPath expression. The XPath expression can be used to specify a skeleton XPath expression which filters the target objects out of the object set.

CalculateTargets(ISfcConnection, SfcQueryExpression) CalculateTargets(ISfcConnection, SfcQueryExpression)

Indicates an expression to calculate with results applied to the targets.

public:
 static System::Collections::IEnumerable ^ CalculateTargets(Microsoft::SqlServer::Management::Common::ISfcConnection ^ targetConnection, Microsoft::SqlServer::Management::Sdk::Sfc::SfcQueryExpression ^ sfcQueryExpression);
public static System.Collections.IEnumerable CalculateTargets (Microsoft.SqlServer.Management.Common.ISfcConnection targetConnection, Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression sfcQueryExpression);
Parameters
targetConnection
Microsoft.SqlServer.Management.Common.ISfcConnection Microsoft.SqlServer.Management.Common.ISfcConnection Microsoft.SqlServer.Management.Common.ISfcConnection

The target connection.

sfcQueryExpression
SfcQueryExpression SfcQueryExpression SfcQueryExpression

The query expression.

Returns

The target object.

CalculateTargets(SqlStoreConnection, String) CalculateTargets(SqlStoreConnection, String)

Calculates an expression with results applied to the targets.

public:
 System::Collections::IEnumerable ^ CalculateTargets(Microsoft::SqlServer::Management::Sdk::Sfc::SqlStoreConnection ^ sqlStoreConnection, System::String ^ policyCategory);
public System.Collections.IEnumerable CalculateTargets (Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection sqlStoreConnection, string policyCategory);
Parameters
sqlStoreConnection
SqlStoreConnection SqlStoreConnection SqlStoreConnection

A Microsoft.SqlServer.Management.Common.ISfcConnection object.

policyCategory
String String String

A string value that specifies the policy category.

Returns

An expression to calculate.

CalculateTargets(SqlStoreConnection, Condition, AdHocPolicyEvaluationMode, String, Object[], TargetEvaluation[]) CalculateTargets(SqlStoreConnection, Condition, AdHocPolicyEvaluationMode, String, Object[], TargetEvaluation[])

Calculates an expression with results applied to the targets.

public:
 void CalculateTargets(Microsoft::SqlServer::Management::Sdk::Sfc::SqlStoreConnection ^ targetConnection, Microsoft::SqlServer::Management::Dmf::Condition ^ condition, Microsoft::SqlServer::Management::Dmf::AdHocPolicyEvaluationMode evaluationMode, System::String ^ policyCategory, [Runtime::InteropServices::Out] cli::array <System::Object ^> ^ % conforming, [Runtime::InteropServices::Out] cli::array <Microsoft::SqlServer::Management::Dmf::TargetEvaluation ^> ^ % violating);
public void CalculateTargets (Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection targetConnection, Microsoft.SqlServer.Management.Dmf.Condition condition, Microsoft.SqlServer.Management.Dmf.AdHocPolicyEvaluationMode evaluationMode, string policyCategory, out object[] conforming, out Microsoft.SqlServer.Management.Dmf.TargetEvaluation[] violating);
Parameters
targetConnection
SqlStoreConnection SqlStoreConnection SqlStoreConnection

The target connection.

condition
Condition Condition Condition

The condition of the expression.

policyCategory
String String String

The policy category.

conforming
Object[]

A pointer to Object array.

violating
TargetEvaluation[]

A pointer to TargetEvaluation array.

Applies to