SPUpgradeJobDefinition Constructor (String, SPService, SPServer, SPJobLockType)
NOTE: This API is now obsolete.
Initialize a new instance of the SPUpgradeJobDefinition class.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use the simplified SPUpgradeJobDefinition constructor", _
False)> _
Public 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 SPUpgradeJobDefinition(name, service, _
server, lockType)
[ObsoleteAttribute("Use the simplified SPUpgradeJobDefinition constructor",
false)]
public SPUpgradeJobDefinition(
string name,
SPService service,
SPServer server,
SPJobLockType lockType
)
Parameters
name
Type: System.StringThe familiar name of the job definition.
service
Type: Microsoft.SharePoint.Administration.SPServiceThe SPService instance associated with the job definition.
server
Type: Microsoft.SharePoint.Administration.SPServerThe SPServer instance associated with the job definition.
lockType
Type: Microsoft.SharePoint.Administration.SPJobLockTypeThe SPJobLockType enumeration value associated with the job definition.
See Also
Reference
SPUpgradeJobDefinition Members