ExternalException.ErrorCode 屬性

定義

取得錯誤的 HRESULTGets the HRESULT of the error.

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

屬性值

錯誤的 HRESULTThe HRESULT of the error.

備註

如需更常遇到的錯誤碼清單, 請參閱常見的 HRESULT 值See Common HRESULT values for a list of the more frequently encountered error codes. HRESULT值會在 Winerror.h 標頭檔中定義。HRESULT values are defined in the Winerror.h header file.

適用於