Freigeben über


DataServiceQuery<TElement>.EndExecute-Methode

Beendet eine asynchrone Abfrageanforderung an einen Datendienst.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Function EndExecute ( _
    asyncResult As IAsyncResult _
) As IEnumerable(Of TElement)
'Usage
Dim instance As DataServiceQuery
Dim asyncResult As IAsyncResult
Dim returnValue As IEnumerable(Of TElement)

returnValue = instance.EndExecute(asyncResult)
public IEnumerable<TElement> EndExecute(
    IAsyncResult asyncResult
)
public:
IEnumerable<TElement>^ EndExecute(
    IAsyncResult^ asyncResult
)
member EndExecute : 
        asyncResult:IAsyncResult -> IEnumerable<'TElement> 
public function EndExecute(
    asyncResult : IAsyncResult
) : IEnumerable<TElement>

Parameter

Rückgabewert

Typ: System.Collections.Generic.IEnumerable<TElement>
Gibt ein IEnumerable<T> zurück, das die Ergebnisse des Abfragevorgangs enthält.

Ausnahmen

Ausnahme Bedingung
DataServiceQueryException

Wenn der Datendienst den Fehler "HTTP 404: Ressource nicht gefunden" zurückgibt.

Siehe auch

Verweis

DataServiceQuery<TElement> Klasse

System.Data.Services.Client-Namespace