Share via


DataServiceQuerySingle<TElement>.CastTo<TResult> Method

Definition

Cast this query type into its derived type.

public virtual Microsoft.OData.Client.DataServiceQuerySingle<TResult> CastTo<TResult> ();
abstract member CastTo : unit -> Microsoft.OData.Client.DataServiceQuerySingle<'Result>
override this.CastTo : unit -> Microsoft.OData.Client.DataServiceQuerySingle<'Result>
Public Overridable Function CastTo(Of TResult) () As DataServiceQuerySingle(Of TResult)

Type Parameters

TResult

Derived type of TElement to be casted to.

Returns

Returns a DataServiceQuerySingle<TElement> of TResult type.

Applies to