Share via


DataServiceActionQuerySingle<T>.EndGetValue(IAsyncResult) Method

Definition

Called to complete the BeginExecute(AsyncCallback, Object).

public T EndGetValue (IAsyncResult asyncResult);
member this.EndGetValue : IAsyncResult -> 'T
Public Function EndGetValue (asyncResult As IAsyncResult) As T

Parameters

asyncResult
IAsyncResult

IAsyncResult object.

Returns

T

The results returned by the query operation.

Exceptions

When asyncResult is null.

When asyncResult did not originate from this DataServiceContext instance. -or- When the EndExecute<TElement>(IAsyncResult) method was previously called.

When an error is raised either during execution of the request or when it converts the contents of the response message into objects.

When the data service returns an HTTP 404: Resource Not Found error.

Applies to