Partager via


Propriété Service.StartMode

Gets or sets the method by which the SQL Server service is started.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Wmi
Assembly :  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Syntaxe

'Déclaration
Public Property StartMode As ServiceStartMode 
    Get 
    Set
'Utilisation
Dim instance As Service 
Dim value As ServiceStartMode 

value = instance.StartMode

instance.StartMode = value
public ServiceStartMode StartMode { get; set; }
public:
property ServiceStartMode StartMode {
    ServiceStartMode get ();
    void set (ServiceStartMode value);
}
member StartMode : ServiceStartMode with get, set
function get StartMode () : ServiceStartMode 
function set StartMode (value : ServiceStartMode)

Valeur de propriété

Type : ServiceStartMode
A ServiceStartMode object value that specifies the method by which the service is started.

Exemples

Gestion des services et des paramètres réseau à l'aide du fournisseur WMI

Voir aussi

Référence

Service Classe

Espace de noms Microsoft.SqlServer.Management.Smo.Wmi

Autres ressources

WMI and SQL Server

Connexion au moteur de base de données SQL Server