Share via


ODataHttpRequestMessageExtensions.GetEdmModel Method (HttpRequestMessage)

 

Note: This API is now obsolete.

Gets the EDM model associated with the request.

Namespace:   System.Net.Http
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

[ObsoleteAttribute("This method is obsolete; use the ODataProperties().Model property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static IEdmModel GetEdmModel(
    this HttpRequestMessage request
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the ODataProperties().Model property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
static IEdmModel^ GetEdmModel(
    HttpRequestMessage^ request
)
[<ObsoleteAttribute("This method is obsolete; use the ODataProperties().Model property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member GetEdmModel : 
        request:HttpRequestMessage -> IEdmModel
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the ODataProperties().Model property from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
Public Shared Function GetEdmModel (
    request As HttpRequestMessage
) As IEdmModel

Parameters

Return Value

Type: Microsoft.Data.Edm.IEdmModel

The EDM model associated with this request or null if there isn't one.

See Also

ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace

Return to top