ODataHttpRequestMessageExtensions.SetEdmModel Method (HttpRequestMessage, IEdmModel)
Note: This API is now obsolete.
Sets 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 void SetEdmModel(
this HttpRequestMessage request,
IEdmModel model
)
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 void SetEdmModel(
HttpRequestMessage^ request,
IEdmModel^ model
)
[<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 SetEdmModel :
request:HttpRequestMessage *
model:IEdmModel -> unit
<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 Sub SetEdmModel (
request As HttpRequestMessage,
model As IEdmModel
)
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe request.
model
Type: Microsoft.Data.Edm.IEdmModelThe EDM model to associate with the request.
See Also
ODataHttpRequestMessageExtensions Class
System.Net.Http Namespace
Return to top