Поделиться через


PartialMonitoringObject.InMaintenanceMode Property

 

Applies To: Operations Manager for System Center 2012

Gets a value indicating whether the monitoring object is in maintenance mode.

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

Syntax

public bool InMaintenanceMode { get; }
public:
property bool InMaintenanceMode {
    bool get();
}
member InMaintenanceMode : bool with get
Public ReadOnly Property InMaintenanceMode As Boolean

Property Value

Type: System.Boolean

Returns a Boolean  true if the monitoring object is in maintenance mode; otherwise, false.

Remarks

When a monitoring object is in maintenance mode, the following features are temporarily suspended.

  1. Rules and monitors

  2. Notifications

  3. Diagnostics and recoveries

  4. State changes

  5. New alerts

To place the InMaintenanceMode object into maintenance mode, use the ScheduleMaintenanceMode method.

To remove the InMaintenanceMode object from maintenance mode, use the StopMaintenanceMode method.

Examples

For an example of this property, see PartialMonitoringObject

See Also

ScheduleMaintenanceMode
PartialMonitoringObject Class
Microsoft.EnterpriseManagement.Monitoring Namespace

Return to top