构造一个新的作业,就会执行诊断程序提供程序操作
命名空间: Microsoft.SharePoint.Diagnostics
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Protected Sub New ( _
title As String, _
name As String, _
schedule As String, _
service As SPService, _
lockType As SPJobLockType _
)
用法
Dim title As String
Dim name As String
Dim schedule As String
Dim service As SPService
Dim lockType As SPJobLockType
Dim instance As New SPDiagnosticsProvider(title, name, _
schedule, service, lockType)
protected SPDiagnosticsProvider(
string title,
string name,
string schedule,
SPService service,
SPJobLockType lockType
)
参数
title
类型:System.String作业定义的标题。
name
类型:System.String作业定义的名称。
schedule
类型:System.String作业计划。
service
类型:Microsoft.SharePoint.Administration.SPService一个 SPService 对象。
lockType
类型:Microsoft.SharePoint.Administration.SPJobLockType一个 SPJobLockType 对象。