Поделиться через


Свойство StartMode

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

Пространство имен:  Microsoft.SqlServer.Management.Smo.Wmi
Сборка:  Microsoft.SqlServer.SqlWmiManagement (в Microsoft.SqlServer.SqlWmiManagement.dll)

Синтаксис

'Декларация
Public Property StartMode As ServiceStartMode
    Get
    Set
'Применение
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)

Значение свойства

Тип ServiceStartMode
A ServiceStartMode object value that specifies the method by which the service is started.