PrincipalOperationException.ErrorCode 屬性

定義

傳回整數錯誤碼。

public:
 property int ErrorCode { int get(); };
public int ErrorCode { get; }
member this.ErrorCode : int
Public ReadOnly Property ErrorCode As Integer

屬性值

整數錯誤碼。 如果沒有收到來自 Win32 應用程式開發介面的基礎錯誤,系統會在例外狀況的錯誤碼屬性中傳回 0 (零)。 呼叫端必須區分 0 (零) 和有效的 Win32 錯誤碼。

適用於