Share via


SPRunningJob.ServiceId Property

Gets the service ID of the running job.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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.

See Also

Reference

SPRunningJob Class

SPRunningJob Members

Microsoft.SharePoint.Administration Namespace

WebApplicationId