PartialMonitoringObject::UpdateMaintenanceMode Method (DateTime, MaintenanceModeReason, String^, TraversalDepth)
System Center
Applies To: Operations Manager for System Center 2012
Updates the current maintenance mode for the client.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: void UpdateMaintenanceMode( DateTime scheduledEndTime, MaintenanceModeReason reason, String^ comments, TraversalDepth traversalDepth )
Parameters
- scheduledEndTime
-
Type:
System::DateTime
The updated time to end maintenance mode.
- reason
-
Type:
Microsoft.EnterpriseManagement.Monitoring::MaintenanceModeReason
The updated reason for maintenance mode.
- comments
-
Type:
System::String^
Additional comments.
- traversalDepth
-
Type:
Microsoft.EnterpriseManagement.Common::TraversalDepth
A value that specifies the scope of the returned results. A value of OneLevel includes only instances of the specified class in the scope of the returned results. A value of Recursive includes instances of the specified class and all instances that are contained by those instances.
Show: