SPJobDefinition constructor (String, SPWebApplication, SPServer, SPJobLockType)
初始化SPJobDefinition類別的新執行個體,並提供參數指定主要物件。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected Sub New ( _
name As String, _
webApplication As SPWebApplication, _
server As SPServer, _
lockType As SPJobLockType _
)
'用途
Dim name As String
Dim webApplication As SPWebApplication
Dim server As SPServer
Dim lockType As SPJobLockType
Dim instance As New SPJobDefinition(name, webApplication, _
server, lockType)
protected SPJobDefinition(
string name,
SPWebApplication webApplication,
SPServer server,
SPJobLockType lockType
)
參數
name
Type: System.String指定工作定義的名稱。
webApplication
Type: Microsoft.SharePoint.Administration.SPWebApplication會指定SPWebApplication物件執行個體。
server
Type: Microsoft.SharePoint.Administration.SPServer會指定SPServer物件執行個體。
lockType
Type: Microsoft.SharePoint.Administration.SPJobLockType會指定SPJobLockType列舉中的列舉值。