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 命名空间