ManagementException.ErrorCode 屬性

定義

取得 WMI 所報告的錯誤程式碼,它造成這個例外狀況。Gets the error code reported by WMI, which caused this exception.

public:
 property System::Management::ManagementStatus ErrorCode { System::Management::ManagementStatus get(); };
public System.Management.ManagementStatus ErrorCode { get; }
member this.ErrorCode : System.Management.ManagementStatus
Public ReadOnly Property ErrorCode As ManagementStatus

屬性值

指出錯誤碼的其中一個列舉值。One of the enumeration values that indicates the error code.

備註

屬性值Property Value

ManagementStatus值, 表示 WMI 作業所傳回的錯誤碼。A ManagementStatus value representing the error code returned by the WMI operation.

.NET Framework 安全性.NET Framework Security

完全信任立即呼叫者。Full trust for the immediate caller. 這個成員無法供部分信任的程式碼使用。This member cannot be used by partially trusted code. 如需詳細資訊, 請參閱從部分信任的程式碼使用程式庫For more information, see Using Libraries from Partially Trusted Code.

適用於