ODataHttpErrorExtensions.ToODataError Method (HttpError)
Note: This API is now obsolete.
Converts the httpError to an ODataError.
Namespace: System.Web.Http
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
[ObsoleteAttribute("This method is obsolete; use the CreateODataError method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
public static ODataError ToODataError(
this HttpError httpError
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the CreateODataError method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")]
static ODataError^ ToODataError(
HttpError^ httpError
)
[<ObsoleteAttribute("This method is obsolete; use the CreateODataError method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>]
static member ToODataError :
httpError:HttpError -> ODataError
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the CreateODataError method from the System.Web.Http.OData.Extensions or System.Web.OData.Extensions namespace.")>
Public Shared Function ToODataError (
httpError As HttpError
) As ODataError
Parameters
httpError
Type: System.Web.Http.HttpErrorThe HttpError instance to convert.
Return Value
Type: Microsoft.Data.OData.ODataError
The converted ODataError
See Also
ODataHttpErrorExtensions Class
System.Web.Http Namespace
Return to top