Condividi tramite


SPAdministrationServiceJobDefinition class

A specialized timer job definition that invokes the SharePoint Administration Service.

Inheritance hierarchy

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

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

Syntax

'Declaration
<GuidAttribute("8B686CB8-5D39-4307-9DD5-0EEEBBD00ADC")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class SPAdministrationServiceJobDefinition _
    Inherits SPJobDefinition
'Usage
Dim instance As SPAdministrationServiceJobDefinition
[GuidAttribute("8B686CB8-5D39-4307-9DD5-0EEEBBD00ADC")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class SPAdministrationServiceJobDefinition : SPJobDefinition

Remarks

This type of timer job an only be created by a user who has administrative privileges. Further, this type of job will not run if the Administration service is disabled on the local computer at the time that the timer service picks up the new job.

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

SPAdministrationServiceJobDefinition members

Microsoft.SharePoint.Administration namespace