DataServiceQuerySingle<TElement>.CastTo<TResult> 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.
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
DataServiceQuerySingle<TResult>
Returns a DataServiceQuerySingle<TElement> of TResult type.