SPRunningJob.ServiceId property
Gets the service ID of the running job.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property ServiceId As Guid
Get
'Usage
Dim instance As SPRunningJob
Dim value As Guid
value = instance.ServiceId
public Guid ServiceId { get; }
Property value
Type: System.Guid
A Guid that represents the ID of the service or service instance associated with the running job.
Remarks
The Guid is associated with the web application at the farm level, rather than at the level of the server that is running the job.