IAdministrationService.CreateMaintenanceSchedule(String, Boolean, Boolean, Boolean, Boolean, Int32, Int32, String, String, Int32, Int32, Int32, Int32, Int32, Int32, DateTime, DateTime) 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.
Creates a maintenance schedule.
public:
Guid CreateMaintenanceSchedule(System::String ^ scheduleName, bool recursive, bool isEnabled, bool isRecurrence, bool isEndTimeSpecified, int duration, int reason, System::String ^ comments, System::String ^ managedEntityIdList, int freqType, int freqInterval, int freqSubdayType, int freqSubdayInterval, int freqRelativeInterval, int freqRecurrenceFactor, DateTime activeStartTime, DateTime activeEndDate);
public Guid CreateMaintenanceSchedule (string scheduleName, bool recursive, bool isEnabled, bool isRecurrence, bool isEndTimeSpecified, int duration, int reason, string comments, string managedEntityIdList, int freqType, int freqInterval, int freqSubdayType, int freqSubdayInterval, int freqRelativeInterval, int freqRecurrenceFactor, DateTime activeStartTime, DateTime activeEndDate);
abstract member CreateMaintenanceSchedule : string * bool * bool * bool * bool * int * int * string * string * int * int * int * int * int * int * DateTime * DateTime -> Guid
Public Function CreateMaintenanceSchedule (scheduleName As String, recursive As Boolean, isEnabled As Boolean, isRecurrence As Boolean, isEndTimeSpecified As Boolean, duration As Integer, reason As Integer, comments As String, managedEntityIdList As String, freqType As Integer, freqInterval As Integer, freqSubdayType As Integer, freqSubdayInterval As Integer, freqRelativeInterval As Integer, freqRecurrenceFactor As Integer, activeStartTime As DateTime, activeEndDate As DateTime) As Guid
Parameters
- scheduleName
- String
The name of the schedule.
- recursive
- Boolean
Whether to apply this recursively
- isEnabled
- Boolean
Whether to enable this schedule after creation
- isRecurrence
- Boolean
Whether the schedule is recurring
- isEndTimeSpecified
- Boolean
Whether the user specified the end time or duration
- duration
- Int32
The duration for each run of the schedule
- reason
- Int32
The reason code.
- comments
- String
The comments
- managedEntityIdList
- String
Comma seperated list of managed entities tied to this schedule
- freqType
- Int32
The recurrence frequency type
- freqInterval
- Int32
The recurrence frequency interval
- freqSubdayType
- Int32
The recurrence frequency subday type
- freqSubdayInterval
- Int32
The recurrence frequency subday interval
- freqRelativeInterval
- Int32
The recurrence frequency relative interval
- freqRecurrenceFactor
- Int32
The recurrence frequency recurrence factor
- activeStartTime
- DateTime
The UTC start time
- activeEndDate
- DateTime
Till when the schedule is active