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)

Usage

Visual Basic
Dim instance As PartialMonitoringObject
Dim value As Boolean

value = instance.InMaintenanceMode

Syntax

Visual Basic
Public ReadOnly Property InMaintenanceMode As Boolean
C#
public bool InMaintenanceMode { get; }
C++
public:
property bool InMaintenanceMode {
		bool get ();
}
J#
/** @property */
public boolean get_InMaintenanceMode ()
JScript
public function get InMaintenanceMode () : boolean

Property Value

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

Example

For an example of this property, see PartialMonitoringObject.

Remarks

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

  • Rules and monitors

  • Notifications

  • Diagnostics and recoveries

  • State changes

  • New alerts

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

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


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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also