Share via


Service.ProcessId Property

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

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

Syntax

'Declaration
Public ReadOnly Property ProcessId As Integer 
    Get
'Usage
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

Property Value

Type: System.Int32
An Int32 value that specifies the ID value that uniquely identifies the service.

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