共用方式為


ODataError 類別

定義

代表錯誤承載的類別。

public sealed class ODataError : Microsoft.OData.ODataAnnotatable
type ODataError = class
    inherit ODataAnnotatable
Public NotInheritable Class ODataError
Inherits ODataAnnotatable
繼承

建構函式

ODataError()

代表錯誤承載的類別。

屬性

Details

必須包含程式碼和訊息之名稱/值組的 JSON 物件集合,而且 MAY 包含目標的名稱/值組,如上所述。

ErrorCode

取得或設定要在裝載中使用的錯誤代碼。

InnerError

取得或設定要協助判斷錯誤原因的實作指定偵錯資訊。

InstanceAnnotations

自訂執行個體註釋的集合。

Message

取得或設定錯誤訊息。

Target

取得或設定特定錯誤的目標。

TypeAnnotation

用於儲存 的 @odata.type 批註。

(繼承來源 ODataAnnotatable)

方法

ToString()

序列化為代表錯誤物件的 Json 格式字串。

適用於