PartialMonitoringObject::UpdateMaintenanceMode Method (DateTime, MaintenanceModeReason, String^)
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 )
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.
To perform an update, the PartialMonitoringObject object must be in maintenance mode. See the ScheduleMaintenanceMode method about how to put the PartialMonitoringObject object into maintenance mode.
Show: