Udostępnij za pośrednictwem


PartialMonitoringObject.GetMaintenanceWindow Method ()

 

Applies To: Operations Manager for System Center 2012

Gets the current maintenance mode information.

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

Syntax

public MaintenanceWindow GetMaintenanceWindow()
public:
MaintenanceWindow^ GetMaintenanceWindow()
member GetMaintenanceWindow : unit -> MaintenanceWindow
Public Function GetMaintenanceWindow As MaintenanceWindow

Return Value

Type: Microsoft.EnterpriseManagement.Monitoring.MaintenanceWindow

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.

See Also

PartialMonitoringObject Class
Microsoft.EnterpriseManagement.Monitoring Namespace

Return to top