skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class Occurrence

Provides class for appointment occurrence.

Inheritance
System.Object
Occurrence
Namespace: Telerik.Windows.Controls.ScheduleView
Assembly: Telerik.Windows.Controls.ScheduleView.dll

Syntax

public class Occurrence : Object, IOccurrence, IDateSpan, 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.DateTime of the IDateSpan.

Declaration
public DateTime End { get; }
Property Value
System.DateTime

The end System.DateTime.

Implements
IDateSpan.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
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.DateTime

Start

Gets the start System.DateTime of the IDateSpan.

Declaration
public DateTime Start { get; }
Property Value
System.DateTime

The start System.DateTime.

Implements
IDateSpan.Start

State

Gets the recurrence state.

Declaration
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
public static Occurrence CreateException(IAppointment master, IAppointment exception, DateTime originalStart)
Parameters
IAppointment master

The master.

IAppointment exception

The exception.

System.DateTime originalStart

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
Occurrence

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.DateTime start

The start.

System.DateTime end

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.Object obj

The Occurrence to compare with the current Occurrence.

Returns
System.Boolean

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

Exceptions
System.NullReferenceException

The obj parameter is null.

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.Boolean

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

GetHashCode()

Serves as a hash function for a particular type.

Declaration
public override int GetHashCode()
Returns
System.Int32

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.String

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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.