Compartilhar via


Método ObjectSet.CalculateTargets (SqlStoreConnection, String)

Calculates an expression with results applied to the targets.

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

Sintaxe

'Declaração
Public Function CalculateTargets ( _
    sqlStoreConnection As SqlStoreConnection, _
    policyCategory As String _
) As IEnumerable
'Uso
Dim instance As ObjectSet 
Dim sqlStoreConnection As SqlStoreConnection 
Dim policyCategory As String 
Dim returnValue As IEnumerable 

returnValue = instance.CalculateTargets(sqlStoreConnection, _
    policyCategory)
public IEnumerable CalculateTargets(
    SqlStoreConnection sqlStoreConnection,
    string policyCategory
)
public:
IEnumerable^ CalculateTargets(
    SqlStoreConnection^ sqlStoreConnection, 
    String^ policyCategory
)
member CalculateTargets : 
        sqlStoreConnection:SqlStoreConnection * 
        policyCategory:string -> IEnumerable
public function CalculateTargets(
    sqlStoreConnection : SqlStoreConnection, 
    policyCategory : String
) : IEnumerable

Parâmetros

  • policyCategory
    Tipo: System.String
    A string value that specifies the policy.

Valor de retorno

Tipo: System.Collections.IEnumerable
An IEnumerable object.

Consulte também

Referência

ObjectSet Classe

Sobrecarregado CalculateTargets

Namespace Microsoft.SqlServer.Management.Dmf