ServiceRequestException.ErrorCode Property

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public ReadOnly Property ErrorCode As Integer
    Get
'Usage
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

Property Value

Type: System.Int32
An Int32 value that specifies the error code.