Class
Slot

A class that represents specific time range with or without associated resources.

Definition

Constructors

Slot()

Initializes a new instance of the Slot class.

Declaration

cs-api-definition
public Slot()

Slot(DateTime, DateTime)

Initializes a new instance of the Slot class.

Declaration

cs-api-definition
public Slot(DateTime start, DateTime end)

Parameters

start

DateTime

The start.

end

DateTime

The end.

Slot(DateTime, DateTime, IEnumerable)

Initializes a new instance of the Slot class.

Declaration

cs-api-definition
public Slot(DateTime start, DateTime end, IEnumerable resources)

Parameters

start

DateTime

The start.

end

DateTime

The end.

resources

IEnumerable

The resources for the Slot.

Slot(DateTime, DateTime, IEnumerable, TimeZoneInfo)

Initializes a new instance of the Slot class.

Declaration

cs-api-definition
public Slot(DateTime start, DateTime end, IEnumerable resources, TimeZoneInfo timeZone)

Parameters

start

DateTime

The start.

end

DateTime

The end.

resources

IEnumerable

The resources for the Slot.

timeZone

TimeZoneInfo

The timeZone for the Slot.

Slot(IDateSpan)

Initializes a new instance of the Slot class.

Declaration

cs-api-definition
public Slot(IDateSpan other)

Parameters

other

IDateSpan

A DateSpan instance that is used for initializing the new instance.

Slot(IDateSpan, IEnumerable)

Initializes a new instance of the Slot class.

Declaration

cs-api-definition
public Slot(IDateSpan other, IEnumerable resources)

Parameters

other

IDateSpan

A DateSpan instance that is used for initializing the new instance.

resources

IEnumerable

The resources for the Slot.

Slot(IDateSpan, IEnumerable, TimeZoneInfo)

Declaration

cs-api-definition
public Slot(IDateSpan other, IEnumerable resources, TimeZoneInfo timeZone)

Parameters

other

IDateSpan

resources

IEnumerable

timeZone

TimeZoneInfo

Slot(IOccurrence)

Declaration

cs-api-definition
public Slot(IOccurrence occurence)

Parameters

occurence

IOccurrence

Slot(Slot)

Initializes a new instance of the Slot class.

Declaration

cs-api-definition
public Slot(Slot other)

Parameters

other

Slot

Another slot that is used for initializing the new instance.

Properties

IsReadOnly

Gets or sets a value indicating whether this slot is read only.

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

True if this slot is read only; otherwise, False.

RecurrencePattern

Gets or sets the recurrence pattern.

Declaration

cs-api-definition
public RecurrencePattern RecurrencePattern { get; set; }

Property Value

RecurrencePattern

The recurrence pattern.

Resources

Gets the resources.

Declaration

cs-api-definition
public ObservableCollection<object> Resources { get; }

Property Value

ObservableCollection<object>

The resources.

TimeZone

Gets or sets the appointment time zone.

Declaration

cs-api-definition
public TimeZoneInfo TimeZone { get; set; }

Property Value

TimeZoneInfo

The appointment time zone.

Methods

Copy()

Copies this instance.

Declaration

cs-api-definition
public virtual Slot Copy()

Returns

Slot

Implements ICopyable<Slot>.Copy()

CopyFrom(Slot)

Deep copies all properties from other to this Slot.

Declaration

cs-api-definition
public virtual void CopyFrom(Slot other)

Parameters

other

Slot

The Slot which properties are copied.

Implements ICopyable<Slot>.CopyFrom(Slot)

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

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

Parameters

obj

object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Exceptions

NullReferenceException

The obj parameter is null.

Overrides DateSpan.Equals(object)