語言

PrincipalOperationException.ErrorCode 屬性

定義

回傳整數錯誤碼。

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

屬性值

一個整數錯誤代碼。 如果沒有從 Win32 API 收到任何底層錯誤,系統會在例外錯誤碼屬性中回傳 0(零)。 呼叫者需要區分 0(0)與有效的 win32 錯誤碼。

適用於