Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
NOTE: This API is now obsolete.
Initializes a new instance of the SPWorkItemJobDefinition class that specifies the name of the work-item job definition, associated Web application, hosting server, and processing lock type.
Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use the simplified SPWorkItemJobDefinition constructor",  _
    False)> _
Public Sub New ( _
    name As String, _
    webApplication As SPWebApplication, _
    server As SPServer, _
    lockType As SPJobLockType _
)
'Usage
Dim name As String
Dim webApplication As SPWebApplication
Dim server As SPServer
Dim lockType As SPJobLockType
Dim instance As New SPWorkItemJobDefinition(name, webApplication, _
    server, lockType)
[ObsoleteAttribute("Use the simplified SPWorkItemJobDefinition constructor", 
    false)]
public SPWorkItemJobDefinition(
    string name,
    SPWebApplication webApplication,
    SPServer server,
    SPJobLockType lockType
)
Parameters
name
Type: System.StringName of the SPWorkItemJobDefinition instance.
webApplication
Type: Microsoft.SharePoint.Administration.SPWebApplicationThe SPWebApplication instance for which work items are being processed.
server
Type: Microsoft.SharePoint.Administration.SPServerThe SPServer instance for from which work items are being fetched.
lockType
Type: Microsoft.SharePoint.Administration.SPJobLockTypeThe SPJobLockType applied to the work-item processing
See Also
Reference
SPWorkItemJobDefinition Members