Share via


PartialMonitoringObject.GetMaintenanceWindow Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets the current maintenance mode information.

Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Usage

'Usage
Dim instance As PartialMonitoringObject
Dim returnValue As MaintenanceWindow

returnValue = instance.GetMaintenanceWindow

Syntax

'Declaration
Public Function GetMaintenanceWindow As MaintenanceWindow
public MaintenanceWindow GetMaintenanceWindow ()
public:
MaintenanceWindow^ GetMaintenanceWindow ()
public MaintenanceWindow GetMaintenanceWindow ()
public function GetMaintenanceWindow () : MaintenanceWindow

Return Value

Returns a MaintenanceWindow object.

Remarks

If the PartialMonitoringObjectobject is not in maintenance mode, an exception is thrown. See the ScheduleMaintenanceMode method for information about putting the PartialMonitoringObject object into maintenance mode.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

PartialMonitoringObject Class
PartialMonitoringObject Members
Microsoft.EnterpriseManagement.Monitoring Namespace