PartialMonitoringObject.UpdateMaintenanceMode Method

Definition

Updates the current maintenance mode for the client.

Overloads

UpdateMaintenanceMode(DateTime, MaintenanceModeReason, String)

Updates the current maintenance mode for this object.

UpdateMaintenanceMode(DateTime, MaintenanceModeReason, String, TraversalDepth)

Updates the current maintenance mode for this object.

UpdateMaintenanceMode(DateTime, MaintenanceModeReason, String)

Updates the current maintenance mode for this object.

public:
 void UpdateMaintenanceMode(DateTime scheduledEndTime, Microsoft::EnterpriseManagement::Monitoring::MaintenanceModeReason reason, System::String ^ comments);
public void UpdateMaintenanceMode (DateTime scheduledEndTime, Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason reason, string comments);
member this.UpdateMaintenanceMode : DateTime * Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason * string -> unit
Public Sub UpdateMaintenanceMode (scheduledEndTime As DateTime, reason As MaintenanceModeReason, comments As String)

Parameters

scheduledEndTime
DateTime

The scheduled end time.

reason
MaintenanceModeReason

The reason.

comments
String

Any comments.

Remarks

To perform an update, the [UpdateMaintenanceMode Method (DateTime, MaintenanceModeReason,]() object must be in maintenance mode. See the ScheduleMaintenanceMode method about how to put the object into maintenance mode.

Applies to

UpdateMaintenanceMode(DateTime, MaintenanceModeReason, String, TraversalDepth)

Updates the current maintenance mode for this object.

public:
 void UpdateMaintenanceMode(DateTime scheduledEndTime, Microsoft::EnterpriseManagement::Monitoring::MaintenanceModeReason reason, System::String ^ comments, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public void UpdateMaintenanceMode (DateTime scheduledEndTime, Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason reason, string comments, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.UpdateMaintenanceMode : DateTime * Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason * string * Microsoft.EnterpriseManagement.Common.TraversalDepth -> unit
Public Sub UpdateMaintenanceMode (scheduledEndTime As DateTime, reason As MaintenanceModeReason, comments As String, traversalDepth As TraversalDepth)

Parameters

scheduledEndTime
DateTime

The scheduled end time.

reason
MaintenanceModeReason

The reason.

comments
String

Any comments.

traversalDepth
TraversalDepth

Whether or not to update this maintenance mode window recursively down the containment hierarchy.

Applies to