Share via


Service.StartMode Property

Definition

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

public:
 property Microsoft::SqlServer::Management::Smo::Wmi::ServiceStartMode StartMode { Microsoft::SqlServer::Management::Smo::Wmi::ServiceStartMode get(); void set(Microsoft::SqlServer::Management::Smo::Wmi::ServiceStartMode value); };
public Microsoft.SqlServer.Management.Smo.Wmi.ServiceStartMode StartMode { get; set; }
member this.StartMode : Microsoft.SqlServer.Management.Smo.Wmi.ServiceStartMode with get, set
Public Property StartMode As ServiceStartMode

Property Value

Microsoft.SqlServer.Management.Smo.Wmi.ServiceStartMode

A Microsoft.SqlServer.Management.Smo.Wmi.ServiceStartMode object value that specifies the method by which the service is started.

Examples

Managing Services and Network Settings by Using WMI Provider

Applies to