SPMaintenanceWindow constructor (SPMaintenanceWindowType, DateTime, DateTime, DateTime, DateTime, TimeSpan, String)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
type As SPMaintenanceWindowType, _
maintenanceStartDate As DateTime, _
maintenanceEndDate As DateTime, _
notificationStartDate As DateTime, _
notificationEndDate As DateTime, _
duration As TimeSpan, _
link As String _
)
'Usage
Dim type As SPMaintenanceWindowType
Dim maintenanceStartDate As DateTime
Dim maintenanceEndDate As DateTime
Dim notificationStartDate As DateTime
Dim notificationEndDate As DateTime
Dim duration As TimeSpan
Dim link As String
Dim instance As New SPMaintenanceWindow(type, maintenanceStartDate, _
maintenanceEndDate, notificationStartDate, _
notificationEndDate, duration, link)
public SPMaintenanceWindow(
SPMaintenanceWindowType type,
DateTime maintenanceStartDate,
DateTime maintenanceEndDate,
DateTime notificationStartDate,
DateTime notificationEndDate,
TimeSpan duration,
string link
)
Parameters
- maintenanceStartDate
Type: System.DateTime
- maintenanceEndDate
Type: System.DateTime
- notificationStartDate
Type: System.DateTime
- notificationEndDate
Type: System.DateTime
- duration
Type: System.TimeSpan
- link
Type: System.String