Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Writes an ODataError as the message payload.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub WriteError ( _
error As ODataError, _
includeDebugInformation As Boolean _
)
'Usage
Dim instance As ODataMessageWriter
Dim error As ODataError
Dim includeDebugInformation As Boolean
instance.WriteError(error, includeDebugInformation)
public void WriteError(
ODataError error,
bool includeDebugInformation
)
public:
void WriteError(
ODataError^ error,
bool includeDebugInformation
)
member WriteError :
error:ODataError *
includeDebugInformation:bool -> unit
public function WriteError(
error : ODataError,
includeDebugInformation : boolean
)
Parameters
- error
Type: Microsoft.Data.OData.ODataError
The error to write.
- includeDebugInformation
Type: System.Boolean
A flag indicating whether debug information (for example, the inner error from the error) should be included in the payload. This should only be used in debug scenarios.