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


Свойство Service.ProcessId

Gets the process ID that uniquely identifies the SQL Server service.

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

Синтаксис

'Декларация
Public ReadOnly Property ProcessId As Integer 
    Get
'Применение
Dim instance As Service 
Dim value As Integer 

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

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

Тип: System.Int32
An Int32 value that specifies the ID value that uniquely identifies the service.

Примеры

Управление службами и сетевыми настройками с помощью поставщика WMI

См. также

Справочник

Service Класс

Пространство имен Microsoft.SqlServer.Management.Smo.Wmi

Другие ресурсы

WMI and SQL Server

Соединение с компонентом SQL Server Database Engine