Partilhar via


Método SfcObjectQuery.ExecuteDataTable

Executes the query string to retrieve the specified fields and return a fully populated data table. Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxe

'Declaração
Public Function ExecuteDataTable ( _
    query As SfcQueryExpression, _
    fields As String(), _
    orderByFields As OrderBy() _
) As DataTable
'Uso
Dim instance As SfcObjectQuery 
Dim query As SfcQueryExpression 
Dim fields As String()
Dim orderByFields As OrderBy()
Dim returnValue As DataTable 

returnValue = instance.ExecuteDataTable(query, _
    fields, orderByFields)
public DataTable ExecuteDataTable(
    SfcQueryExpression query,
    string[] fields,
    OrderBy[] orderByFields
)
public:
DataTable^ ExecuteDataTable(
    SfcQueryExpression^ query, 
    array<String^>^ fields, 
    array<OrderBy^>^ orderByFields
)
member ExecuteDataTable : 
        query:SfcQueryExpression * 
        fields:string[] * 
        orderByFields:OrderBy[] -> DataTable
public function ExecuteDataTable(
    query : SfcQueryExpression, 
    fields : String[], 
    orderByFields : OrderBy[]
) : DataTable

Parâmetros

  • fields
    Tipo: array<System.String[]
    The field names to retrieve. If null, all default inexpensive fields are retrieved.

Valor de retorno

Tipo: System.Data.DataTable
The data table of results.

Consulte também

Referência

SfcObjectQuery Classe

Namespace Microsoft.SqlServer.Management.Sdk.Sfc