Compartilhar via


Propriedade do RDL Service.ExitCode

Gets the Win32 error code that defines problems encountered when starting and stopping the SQL Server service.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (em Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxe

'Declaração
Public ReadOnly Property ExitCode As Integer 
    Get
'Uso
Dim instance As Service 
Dim value As Integer 

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

Valor da propriedade

Tipo: System.Int32
An Int32 value that specifies the Win32 error code that defines problems encountered when starting and stopping the service.

Exemplos

Gerenciando serviços e configurações de rede através do provedor do WMI

Consulte também

Referência

Service Classe

Namespace Microsoft.SqlServer.Management.Smo.Wmi

Outros recursos

WMI and SQL Server

Conectando ao Mecanismo de Banco de Dados do SQL Server