ODataMessageWriter.WriteError 方法

写入 ODataError 作为消息负载。

命名空间:  Microsoft.Data.OData
程序集:  Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)

语法

声明
Public Sub WriteError ( _
    error As ODataError, _
    includeDebugInformation As Boolean _
)
用法
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
)

参数

  • includeDebugInformation
    类型:System.Boolean
    指示调试信息是否(例如,error 中的内部错误)应包含在有效负载中的标志。这应只用于调试方案。

请参阅

参考

ODataMessageWriter 类

Microsoft.Data.OData 命名空间