DataServiceContext.CreateSingletonQuery<T>(String) 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.
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)