Share via


DataServiceContext.CreateSingletonQuery<T>(String) Method

Definition

Creates a data service query for singleton data of a specified generic type.

public virtual Microsoft.OData.Client.DataServiceQuery<T> CreateSingletonQuery<T> (string singletonName);
abstract member CreateSingletonQuery : string -> Microsoft.OData.Client.DataServiceQuery<'T>
override this.CreateSingletonQuery : string -> Microsoft.OData.Client.DataServiceQuery<'T>
Public Overridable Function CreateSingletonQuery(Of T) (singletonName As String) As DataServiceQuery(Of T)

Type Parameters

T

The type returned by the query

Parameters

singletonName
String

A string that resolves to a URI.

Returns

A new DataServiceQuery<TElement> instance that represents a data service query.

Remarks

create a query based on (BaseUri + relativeUri)

Applies to