SPAdministrationServiceJobDefinition constructor (String, SPService, SPServer, SPJobLockType)
Initializes a new instance of the SPAddministrationServiceJobDefinition class for the specified service and provides parameters.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Sub New ( _
name As String, _
service As SPService, _
server As SPServer, _
lockType As SPJobLockType _
)
'Usage
Dim name As String
Dim service As SPService
Dim server As SPServer
Dim lockType As SPJobLockType
Dim instance As New SPAdministrationServiceJobDefinition(name, service, _
server, lockType)
protected SPAdministrationServiceJobDefinition(
string name,
SPService service,
SPServer server,
SPJobLockType lockType
)
Parameters
name
Type: System.String[System.String]. The name of the timer job.
service
Type: Microsoft.SharePoint.Administration.SPServiceSPService. The service on whose instances the job will run.
server
Type: Microsoft.SharePoint.Administration.SPServerSPServer. The server on which the job will run.
lockType
Type: Microsoft.SharePoint.Administration.SPJobLockTypeSPJobLockType. The specified lock type for the job definition.
See also
Reference
SPAdministrationServiceJobDefinition class
SPAdministrationServiceJobDefinition members