DataServiceContext.CreateFunctionQuery 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.
Overloads
CreateFunctionQuery<T>(String, String, Boolean, UriOperationParameter[]) |
Creates a data service query for function which return collection of data. |
CreateFunctionQuery<T>() |
Creates a data service query for a function invocation that returns a specified generic type. |
CreateFunctionQuery<T>(String, String, Boolean, UriOperationParameter[])
Creates a data service query for function which return collection of data.
public virtual Microsoft.OData.Client.DataServiceQuery<T> CreateFunctionQuery<T> (string path, string functionName, bool isComposable, params Microsoft.OData.Client.UriOperationParameter[] parameters);
abstract member CreateFunctionQuery : string * string * bool * Microsoft.OData.Client.UriOperationParameter[] -> Microsoft.OData.Client.DataServiceQuery<'T>
override this.CreateFunctionQuery : string * string * bool * Microsoft.OData.Client.UriOperationParameter[] -> Microsoft.OData.Client.DataServiceQuery<'T>
Public Overridable Function CreateFunctionQuery(Of T) (path As String, functionName As String, isComposable As Boolean, ParamArray parameters As UriOperationParameter()) As DataServiceQuery(Of T)
Type Parameters
- T
The type returned by the query
Parameters
- path
- String
The path before the function.
- functionName
- String
The function name.
- isComposable
- Boolean
Whether this query is composable.
- parameters
- UriOperationParameter[]
The function parameters.
Returns
A new DataServiceQuery<TElement> instance that represents the function call.
Applies to
CreateFunctionQuery<T>()
Creates a data service query for a function invocation that returns a specified generic type.
public virtual Microsoft.OData.Client.DataServiceQuery<T> CreateFunctionQuery<T> ();
abstract member CreateFunctionQuery : unit -> Microsoft.OData.Client.DataServiceQuery<'T>
override this.CreateFunctionQuery : unit -> Microsoft.OData.Client.DataServiceQuery<'T>
Public Overridable Function CreateFunctionQuery(Of T) () As DataServiceQuery(Of T)
Type Parameters
- T
The type returned by the query
Returns
A new DataServiceQuery<TElement> instance that represents a data service query.
Remarks
create a query based on (BaseUri + relativeUri)