Share via


DataServiceQuerySingle<TElement>.GetValueAsync Method

Definition

Overloads

GetValueAsync()

Starts an asynchronous network operation that executes the query represented by this object instance.

GetValueAsync(CancellationToken)

Starts an asynchronous network operation that executes the query represented by this object instance.

GetValueAsync()

Starts an asynchronous network operation that executes the query represented by this object instance.

public virtual System.Threading.Tasks.Task<TElement> GetValueAsync ();
abstract member GetValueAsync : unit -> System.Threading.Tasks.Task<'Element>
override this.GetValueAsync : unit -> System.Threading.Tasks.Task<'Element>
Public Overridable Function GetValueAsync () As Task(Of TElement)

Returns

Task<TElement>

A task that represents the result of the query operation.

Applies to

GetValueAsync(CancellationToken)

Starts an asynchronous network operation that executes the query represented by this object instance.

public virtual System.Threading.Tasks.Task<TElement> GetValueAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetValueAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Element>
override this.GetValueAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Element>
Public Overridable Function GetValueAsync (cancellationToken As CancellationToken) As Task(Of TElement)

Parameters

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

Task<TElement>

A task that represents the result of the query operation.

Applies to