IAdministrationService.StartMaintenanceMode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Starts maintenance mode for a monitoring object.
public:
void StartMaintenanceMode(Guid managedEntityId, DateTime startTime, DateTime scheduleEndTime, int reason, System::String ^ comments, bool recursive);
public void StartMaintenanceMode (Guid managedEntityId, DateTime startTime, DateTime scheduleEndTime, int reason, string comments, bool recursive);
abstract member StartMaintenanceMode : Guid * DateTime * DateTime * int * string * bool -> unit
Public Sub StartMaintenanceMode (managedEntityId As Guid, startTime As DateTime, scheduleEndTime As DateTime, reason As Integer, comments As String, recursive As Boolean)
Parameters
- managedEntityId
- Guid
The id of the managed entity.
- startTime
- DateTime
The start time.
- scheduleEndTime
- DateTime
The scheduled end time.
- reason
- Int32
The reason code.
- comments
- String
The comments
- recursive
- Boolean
Whether to apply this recursively