Share via


SPServiceInstanceJobDefinition Class

Represents a SPJobDefinition that is associated with a SPServiceInstance object.Job definitions must be associated with a service or web application. This job definition object associates the job with an instance of an SPService, and adds scheduling information such as how often to run the job, or how many instances of the job can run on multiple farm servers simultaneously.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPJobDefinition
        Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition
          Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition

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

Syntax

'Declaration
<GuidAttribute("EE62DD8D-071F-4378-BFC0-D395126C66B7")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPServiceInstanceJobDefinition _
    Inherits SPAdministrationServiceJobDefinition
'Usage
Dim instance As SPServiceInstanceJobDefinition
[GuidAttribute("EE62DD8D-071F-4378-BFC0-D395126C66B7")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPServiceInstanceJobDefinition : SPAdministrationServiceJobDefinition

Remarks

The SPServiceInstance object represents a single instance of a service that runs on a server. Use the Services property of the SPFarm class to return an SPServiceCollection object that represents the collection of services on the server farm, or use the SPService object contains that the farm-wide settings that apply to the service that this instance implements.

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

SPServiceInstanceJobDefinition Members

Microsoft.SharePoint.Administration Namespace