Class
Occurrence

Provides class for appointment occurrence.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class Occurrence : IDateRange, IEquatable<Occurrence>

Inheritance: objectOccurrence

Implements: IDateRangeIEquatable<Occurrence>

Properties

Appointment

Gets the appointment for this occurrence.

Declaration

cs-api-definition
public IAppointment Appointment { get; }

Property Value

IAppointment

The appointment for this occurrence.

End

Gets the end DateTime of the IDateRange.

Declaration

cs-api-definition
public DateTime End { get; }

Property Value

DateTime

The end DateTime.

Implements IDateRange.End

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

cs-api-definition
public IAppointment Master { get; }

Property Value

IAppointment

The master appointment.

OriginalStart

Gets the date of the occurrence this exception is replacing.

Declaration

cs-api-definition
public DateTime OriginalStart { get; }

Property Value

DateTime

Start

Gets the start DateTime of the IDateRange.

Declaration

cs-api-definition
public DateTime Start { get; }

Property Value

DateTime

The start DateTime.

Implements IDateRange.Start

State

Gets the recurrence state.

Declaration

cs-api-definition
public RecurrenceState State { get; }

Property Value

RecurrenceState

The state.

Methods

CreateException(IAppointment, IAppointment, DateTime)

Creates a new instance of the Occurrence class with Exception state.

Declaration

cs-api-definition
public static Occurrence CreateException(IAppointment master, IAppointment exception, DateTime originalStart)

Parameters

master

IAppointment

The master.

exception

IAppointment

The exception.

originalStart

DateTime

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

cs-api-definition
public static Occurrence CreateMaster(IAppointment master)

Parameters

master

IAppointment

The master.

Returns

Occurrence

CreateOccurrence(IAppointment, DateTime, DateTime)

Creates a new instance of the Occurrence class with Occurrence state.

Declaration

cs-api-definition
public static Occurrence CreateOccurrence(IAppointment master, DateTime start, DateTime end)

Parameters

master

IAppointment

The master.

start

DateTime

The start.

end

DateTime

The end.

Returns

Occurrence

New occurrence with with Occurrence state.

Equals(Occurrence)

Indicates whether the current object is equal to another object of the same type.

Declaration

cs-api-definition
public bool Equals(Occurrence other)

Parameters

other

Occurrence

The object.

Returns

bool

True if the current object is equal to the other parameter; otherwise, false.

Implements IEquatable<Occurrence>.Equals(Occurrence)

Equals(object)

Determines whether the specified Occurrence is equal to the current Occurrence.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The Occurrence to compare with the current Occurrence.

Returns

bool

True if the specified Occurrence is equal to the current Occurrence; otherwise, false.

Exceptions

NullReferenceException

The obj parameter is null.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current Occurrence.

Overrides object.GetHashCode()

ToString()

Returns a System.String that represents the current System.Object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A System.String that represents the current System.Object.

Overrides object.ToString()