写入 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
)
参数
- error
类型:Microsoft.Data.OData.ODataError
写入的错误。
- includeDebugInformation
类型:System.Boolean
指示调试信息是否(例如,error 中的内部错误)应包含在有效负载中的标志。这应只用于调试方案。