共用方式為


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 命名空間