Freigeben über


DataServiceQuery<TElement>.BeginExecute-Methode

Startet einen asynchronen Netzwerkvorgang, der die durch diese Objektinstanz dargestellte Abfrage ausführt.

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

Syntax

'Declaration
Public Function BeginExecute ( _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As DataServiceQuery
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginExecute(callback, _
    state)
public IAsyncResult BeginExecute(
    AsyncCallback callback,
    Object state
)
public:
IAsyncResult^ BeginExecute(
    AsyncCallback^ callback, 
    Object^ state
)
member BeginExecute : 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
public function BeginExecute(
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameter

  • callback
    Typ: System.AsyncCallback
    Der Delegat, der beim Abschließen des Vorgangs aufgerufen werden soll.
  • state
    Typ: System.Object
    Benutzerdefiniertes Objekt zur Statusübertragung zwischen dem Start des Vorgangs und dem von callback definierten Rückruf.

Rückgabewert

Typ: System.IAsyncResult
Ein IAsyncResult zur Darstellung des Status eines asynchronen Vorgangs.

Siehe auch

Verweis

DataServiceQuery<TElement> Klasse

System.Data.Services.Client-Namespace