Share via


DataServiceQuerySingle<TElement>.Select<TResult> Method

Definition

Projects the element of this query into a new form.

public Microsoft.OData.Client.DataServiceQuerySingle<TResult> Select<TResult> (System.Linq.Expressions.Expression<Func<TElement,TResult>> selector);
member this.Select : System.Linq.Expressions.Expression<Func<'Element, 'Result>> -> Microsoft.OData.Client.DataServiceQuerySingle<'Result>
Public Function Select(Of TResult) (selector As Expression(Of Func(Of TElement, TResult))) As DataServiceQuerySingle(Of TResult)

Type Parameters

TResult

The type of the value returned by selector.

Parameters

selector
Expression<Func<TElement,TResult>>

A lambda expression that indicates the property returns.

Returns

A DataServiceQuerySingle<TElement> whose element is the result of invoking the transform function on the element of source.

Applies to