Skip to main content

ScheduleRule class

This data object contains information about the scheduling rule.

Namespace: Lenovo.SysMgmt.LXCA.Integration.Data

Assembly: Lenovo.SysMgmt.LXCA.Integration.Data

Properties

public string Type { get; }
Type of recurring schedule. This can be one of the following values.
  • daily
  • weekly
  • monthly
  • yearly
public string StartDate { get; set; }
Date and time when the job starts running.
public string EndDate { get; set; }
Date and time when the job stops running.
public int EndAfter { get; set; }
End after a number of occurrences
public bool NoEnd { get; }
Indicates whether the schedule has no end date. This can be one of the following values.
  • true. The schedule has no end date.

  • false. (default) The schedule has an end date.

public string[] Days { get; set; }
Days when the job is to run. This can be one or more of the following values.
  • monday
  • tuesday
  • wednesday
  • thursday
  • friday
  • saturday
  • sunday
public int RecurEvery { get; set; }
Interval for running the job (for example, specify 2 for every two weeks).
public string DayOfWeek { get; set; }
Day of each week when the job is to run. This property is required when rule type is weekly, monthly, or yearly. This can be one of the following values.
  • monday
  • tuesday
  • wednesday
  • thursday
  • friday
  • saturday
  • sunday
public int WeekOfMonth { get; set; }
Week of each month when the job is to run. This property is required when rule type is monthly. This can take values between 1 - 5.
public string MonthOfYear { get; set; }
Month of each year when the job is to run. This property is required when rule type is yearly. This can be one of the following values.
  • january
  • february
  • march
  • april
  • june
  • july
  • august
  • september
  • october
  • november
  • december

Methods

public virtual bool Equals (object obj);
Determines whether the specified object is equal to the current object.

(Inherited from System.Object)

public virtual int GetHashCode ();
Serves as the default hash function

(Inherited from System.Object)

public Type GetType ();
Gets the System.Type of the current instance

(Inherited from System.Object)

public virtual string ToString ();
Returns a string that represents the current object.

(Inherited from System.Object)