SPRunningJobCollection.Service property

NOTE: This API is now obsolete.

Gets the parent SPService object.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use Parent as SPService instead.", False)> _
Public ReadOnly Property Service As SPService
    Get
'Usage
Dim instance As SPRunningJobCollection
Dim value As SPService

value = instance.Service
[ObsoleteAttribute("Use Parent as SPService instead.", false)]
public SPService Service { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPService
Represents a farm-wide service.

Remarks

If there is no Web application, this object represents the parent of the running job located at this index in the collection.

See also

Reference

SPRunningJobCollection class

SPRunningJobCollection members

Microsoft.SharePoint.Administration namespace

WebApplication