Partilhar via


Propriedade ErrorCode

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 (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public ReadOnly Property ErrorCode As Integer
    Get
'Uso
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

Valor da propriedade

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