Compartir a través de


SPJobDefinition Class

Represents a job definition.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPJobDefinition
        Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition
        Microsoft.SharePoint.Administration.SPUpgradeJobDefinition
        Microsoft.SharePoint.Administration.SPWorkItemJobDefinition

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

Syntax

<GuidAttribute("3F9F635F-0036-42fe-9C2D-3284162732DB")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPJobDefinition _
    Inherits SPPersistedObject

Dim instance As SPJobDefinition
[GuidAttribute("3F9F635F-0036-42fe-9C2D-3284162732DB")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPJobDefinition : SPPersistedObject

Remarks

Job definitions must be associated with a service or web application. Use the Service or WebApplication properties to return the SPService or SPWebApplication object with which this job definition is associated.

A job definition can also be associated with a specific server. Use the Server property to return the SPServer object with which this job definition is associated.

Use the JobDefinitions property of the SPService or SPWebApplication object to get the collection of job definitions for the given object.

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

SPJobDefinition Members

Microsoft.SharePoint.Administration Namespace