ODataMessageWriter.WriteError Method

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

  • 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.

See Also

Reference

ODataMessageWriter Class

Microsoft.Data.OData Namespace