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


PartialMonitoringObject.UpdateMaintenanceMode Method (DateTime, MaintenanceModeReason, String)

 

Applies To: Operations Manager for System Center 2012

Updates the current maintenance mode for the client.

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

Syntax

public void UpdateMaintenanceMode(
    DateTime scheduledEndTime,
    MaintenanceModeReason reason,
    string comments
)
public:
void UpdateMaintenanceMode(
    DateTime scheduledEndTime,
    MaintenanceModeReason reason,
    String^ comments
)
member UpdateMaintenanceMode : 
        scheduledEndTime:DateTime *
        reason:MaintenanceModeReason *
        comments:string -> unit
Public Sub UpdateMaintenanceMode (
    scheduledEndTime As Date,
    reason As MaintenanceModeReason,
    comments As String
)

Parameters

  • scheduledEndTime
    Type: System.DateTime

    The updated time to end maintenance mode.

Remarks

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.

See Also

UpdateMaintenanceMode Overload
PartialMonitoringObject Class
Microsoft.EnterpriseManagement.Monitoring Namespace

Return to top