مشاركة عبر


Service.StartMode Property

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

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

Syntax

'Declaration
Public Property StartMode As ServiceStartMode 
    Get 
    Set
'Usage
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)

Property Value

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

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

Service Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine