DataServiceQuerySingle<TElement>.Select<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.
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
DataServiceQuerySingle<TResult>
A DataServiceQuerySingle<TElement> whose element is the result of invoking the transform function on the element of source.