SPContentDatabase.GetMaintenanceWindow method
Returns the first maintenance window where the ShouldNotify operation returns true.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetMaintenanceWindow ( _
date As DateTime _
) As SPMaintenanceWindow
'Usage
Dim instance As SPContentDatabase
Dim date As DateTime
Dim returnValue As SPMaintenanceWindow
returnValue = instance.GetMaintenanceWindow(date)
public SPMaintenanceWindow GetMaintenanceWindow(
DateTime date
)
Parameters
date
Type: System.DateTimeThe maintenance window date.
Return value
Type: Microsoft.SharePoint.Administration.SPMaintenanceWindow
The first maintenance window where the ShouldNotify operation returns true.