DataServiceQuerySingle<TElement>.GetValueAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
A task that represents the result of the query operation.