Partilhar via


Método ExecuteIterator

Executes the query string and return a SfcObjectIterator to enumerate the results without caching them. 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 ExecuteIterator ( _
    query As SfcQueryExpression, _
    fields As String(), _
    orderByFields As OrderBy() _
) As IEnumerable
'Uso
Dim instance As SfcObjectQuery
Dim query As SfcQueryExpression
Dim fields As String()
Dim orderByFields As OrderBy()
Dim returnValue As IEnumerable

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

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.Collections. . :: . .IEnumerable
A SfcObjectIterator to enumerate the results.