NetworkInformationException.ErrorCode 屬性

定義

取得這個例外狀況的 Win32 錯誤碼。

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

屬性值

Int32

Int32 值,包含 Win32 錯誤碼。

備註

這個屬性的值是由建構函式所設定。 系統會覆寫這個屬性,以傳回 Win32 錯誤碼,而不是 HRESULT 值。

適用於