QueryableAttribute.GetModel Method
Gets the EDM model for the given type and request.
Namespace: System.Web.Http
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Overridable Function GetModel ( _
elementClrType As Type, _
request As HttpRequestMessage, _
actionDescriptor As HttpActionDescriptor _
) As IEdmModel
'Usage
Dim instance As QueryableAttribute
Dim elementClrType As Type
Dim request As HttpRequestMessage
Dim actionDescriptor As HttpActionDescriptor
Dim returnValue As IEdmModel
returnValue = instance.GetModel(elementClrType, _
request, actionDescriptor)
public virtual IEdmModel GetModel(
Type elementClrType,
HttpRequestMessage request,
HttpActionDescriptor actionDescriptor
)
public:
virtual IEdmModel^ GetModel(
Type^ elementClrType,
HttpRequestMessage^ request,
HttpActionDescriptor^ actionDescriptor
)
abstract GetModel :
elementClrType:Type *
request:HttpRequestMessage *
actionDescriptor:HttpActionDescriptor -> IEdmModel
override GetModel :
elementClrType:Type *
request:HttpRequestMessage *
actionDescriptor:HttpActionDescriptor -> IEdmModel
public function GetModel(
elementClrType : Type,
request : HttpRequestMessage,
actionDescriptor : HttpActionDescriptor
) : IEdmModel
Parameters
- elementClrType
Type: System.Type
The CLR type to retrieve a model for.
- request
Type: System.Net.Http.HttpRequestMessage
The request message to retrieve a model for.
- actionDescriptor
Type: System.Web.Http.Controllers.HttpActionDescriptor
The action descriptor for the action being queried on.
Return Value
Type: IEdmModel
The EDM model for the given type and request.
Remarks
Override this method to customize the EDM model used for querying.