共用方式為


ServiceRequestException.ErrorCode 屬性

Gets the error code that is generated by the system when the service request exception is raised.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public ReadOnly Property ErrorCode As Integer 
    Get
'用途
Dim instance As ServiceRequestException 
Dim value As Integer 

value = instance.ErrorCode
public int ErrorCode { get; }
public:
property int ErrorCode {
    int get ();
}
member ErrorCode : int
function get ErrorCode () : int

屬性值

型別:System.Int32
An Int32 value that specifies the error code.

範例

處理 SMO 例外狀況

請參閱

參考

ServiceRequestException 類別

Microsoft.SqlServer.Management.Smo 命名空間