다음을 통해 공유


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

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPRunningJobCollection _
    Inherits SPBaseCollection
'Usage
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 SharePoint Foundation 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