SPTimerService Constructor (String, SPFarm)
Initializes a new instance of the SPTimerService class and provides the service name and identify the server farm on which the new service is created.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
name As String, _
farm As SPFarm _
)
'Usage
Dim name As String
Dim farm As SPFarm
Dim instance As New SPTimerService(name, farm)
public SPTimerService(
string name,
SPFarm farm
)
Parameters
name
Type: System.StringThe name of the new timer service.
farm
Type: Microsoft.SharePoint.Administration.SPFarmThe server farm on which the new timer service is created. This is an Microsoft.SharePoint.Administration.SPFarm object instance.