PartialMonitoringObject.GetMaintenanceWindow Method

Updated: April 16, 2012

Gets the current maintenance mode information. Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As PartialMonitoringObject Dim returnValue As MaintenanceWindow returnValue = instance.GetMaintenanceWindowPublic Function GetMaintenanceWindow As MaintenanceWindowpublic MaintenanceWindow GetMaintenanceWindow ()public: MaintenanceWindow^ GetMaintenanceWindow ()public MaintenanceWindow GetMaintenanceWindow ()public function GetMaintenanceWindow () : MaintenanceWindowReturn ValueReturns a MaintenanceWindow object.

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.

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

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms