Share via


ObjectSet.CalculateTargets Method (ISfcConnection, SfcQueryExpression)

Calculates an expression with results applied to the targets.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
Public Shared Function CalculateTargets ( _
    targetConnection As ISfcConnection, _
    sfcQueryExpression As SfcQueryExpression _
) As IEnumerable
'Usage
Dim targetConnection As ISfcConnection
Dim sfcQueryExpression As SfcQueryExpression
Dim returnValue As IEnumerable

returnValue = ObjectSet.CalculateTargets(targetConnection, _
    sfcQueryExpression)
public static IEnumerable CalculateTargets(
    ISfcConnection targetConnection,
    SfcQueryExpression sfcQueryExpression
)
public:
static IEnumerable^ CalculateTargets(
    ISfcConnection^ targetConnection, 
    SfcQueryExpression^ sfcQueryExpression
)
static member CalculateTargets : 
        targetConnection:ISfcConnection * 
        sfcQueryExpression:SfcQueryExpression -> IEnumerable 
public static function CalculateTargets(
    targetConnection : ISfcConnection, 
    sfcQueryExpression : SfcQueryExpression
) : IEnumerable

Return Value

Type: System.Collections.IEnumerable
An IEnumerable object.