Class Occurrence
Provides class for appointment occurrence.
Inheritance
Namespace: Telerik.Maui.Controls.Scheduler
Assembly: Telerik.Maui.Controls.dll
Syntax
public class Occurrence : Object, IDateRange, IEquatable<Occurrence>
Properties
Appointment
Gets the appointment for this occurrence.
Declaration
public IAppointment Appointment { get; }
Property Value
IAppointment
The appointment for this occurrence. |
End
Gets the end System.
Declaration
public DateTime End { get; }
Property Value
System. The end System. |
Implements
Master
Gets the master appointment for this occurrence. If this occurrence is an exception, this property is the master appointment for the exception; otherwise this property is the same as the Appointment property.
Declaration
public IAppointment Master { get; }
Property Value
IAppointment
The master appointment. |
OriginalStart
Gets the date of the occurrence this exception is replacing.
Declaration
public DateTime OriginalStart { get; }
Property Value
System.
|
Start
Gets the start System.
Declaration
public DateTime Start { get; }
Property Value
System. The start System. |
Implements
State
Gets the recurrence state.
Declaration
public RecurrenceState State { get; }
Property Value
Recurrence The state. |
Methods
CreateException(IAppointment, IAppointment, DateTime)
Creates a new instance of the Occurrence class with Exception state.
Declaration
public static Occurrence CreateException(IAppointment master, IAppointment exception, DateTime originalStart)
Parameters
IAppointment
master
The master. |
IAppointment
exception
The exception. |
System. The original start. |
Returns
Occurrence
New occurrence with with Exception state. |
CreateMaster(IAppointment)
Creates a new instance of the Occurrence class with Master state.
Declaration
public static Occurrence CreateMaster(IAppointment master)
Parameters
IAppointment
master
The master. |
Returns
CreateOccurrence(IAppointment, DateTime, DateTime)
Creates a new instance of the Occurrence class with Occurrence state.
Declaration
public static Occurrence CreateOccurrence(IAppointment master, DateTime start, DateTime end)
Parameters
IAppointment
master
The master. |
System. The start. |
System. The end. |
Returns
Occurrence
New occurrence with with Occurrence state. |
Equals(Object)
Determines whether the specified Occurrence is equal to the current Occurrence.
Declaration
public override bool Equals(object obj)
Parameters
System. The Occurrence to compare with the current Occurrence. |
Returns
System. True if the specified Occurrence is equal to the current Occurrence; otherwise, false. |
Exceptions
System. The |
Equals(Occurrence)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Occurrence other)
Parameters
Occurrence
other
The object. |
Returns
System. True if the current object is equal to the |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System. A hash code for the current Occurrence. |
ToString()
Returns a System.String that represents the current System.Object.
Declaration
public override string ToString()
Returns
System. A System.String that represents the current System.Object. |