Partager via


SPRunningJobCollection Class

Represents a collection of SPRunningJob objects.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.Administration.SPRunningJobCollection

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPRunningJobCollection _
    Inherits SPBaseCollection

Dim instance As SPRunningJobCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPRunningJobCollection : SPBaseCollection

Remarks

This object provides a convenient way to manage all the running jobs in the Windows SharePoint Services farm. A SPWebApplication object is the parent object of a running job, or the SPService object is the parent if there is no Web application. Running jobs may be scheduled to run at a particular time with the SPTimerService, or they may be started on request. There may be multiple instances on several servers, or the job could be limited to one running instance on the farm at a time.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPRunningJobCollection Members

Microsoft.SharePoint.Administration Namespace

SPRunningJob