<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

CrontabField

public class CrontabField : ICrontabField
Represents a crontab field.
public static CrontabField Days(string expression)

Parses a crontab field expression representing days.

public static CrontabField DaysOfWeek(string expression)

Parses a crontab field expression representing days of the week.

public static CrontabField Hours(string expression)

Parses a crontab field expression representing hours.

public static CrontabField Minutes(string expression)

Parses a crontab field expression representing minutes.

public static CrontabField Months(string expression)

Parses a crontab field expression representing months.

public static CrontabField Parse(CrontabFieldKind kind, string expression)

Parses a provided string representation of a crontab field according to its specified kind. Throws an exception on failure.

public static ValueOrError<CrontabField> TryParse(CrontabFieldKind kind, string expression)

Attempts to parse a provided string representation of a crontab field according to its specified kind.

public static ValueOrError<CrontabField> TryParse(CrontabFieldKind kind, string expression, ExceptionHandler onError)

Attempts to parse a provided string representation of a crontab field according to its specified kind.

public bool Contains(int value)

Indicates if the value at the provided index exists.

public void Format(TextWriter writer)

Formats this CrontabField using the provided text writer.

public void Format(TextWriter writer, bool noNames)

Formats this CrontabField using the provided text writer, with or withour names.

public int GetFirst()

Gets the index of the first value that is set on this CrontabField.

public int NextField(int start)

Gets the index of the next value to set on this CrontabField.

public string ToString(string format)

Gets the string representation of this CrontabField, respecting formatting.