Share via


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

Return value

Type: Microsoft.SharePoint.Administration.SPMaintenanceWindow
The first maintenance window where the ShouldNotify operation returns true.

See also

Reference

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace