• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ICalComponent

An intermediate representation of an iCalendar component (RFC 5545 §3.6) used during parsing. A component has a name (e.g. VCALENDAR, VEVENT), a list of properties, and a list of sub-components.

Inheritance
object
ICalComponent
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.ICal.Parsing
Assembly: DRIT.Mail.dll
Syntax
public sealed class ICalComponent

Constructors

View Source

ICalComponent(string)

Initializes a new instance of the ICalComponent class.

Declaration
public ICalComponent(string name)
Parameters
Type Name Description
string name

The component name (e.g. VCALENDAR, VEVENT).

Properties

View Source

Components

Gets the sub-components of this component, in source order.

Declaration
public List<ICalComponent> Components { get; }
Property Value
Type Description
List<ICalComponent>
View Source

Name

Gets the component name (e.g. VCALENDAR, VEVENT, VTODO).

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

Properties

Gets the properties of this component, in source order.

Declaration
public List<ICalProperty> Properties { get; }
Property Value
Type Description
List<ICalProperty>

Methods

View Source

GetComponents(string)

Gets all sub-components with the specified name (case-insensitive).

Declaration
public IReadOnlyList<ICalComponent> GetComponents(string name)
Parameters
Type Name Description
string name

Specifies the name value.

Returns
Type Description
IReadOnlyList<ICalComponent>
View Source

GetProperties(string)

Gets all properties with the specified name (case-insensitive).

Declaration
public IReadOnlyList<ICalProperty> GetProperties(string name)
Parameters
Type Name Description
string name

Specifies the name value.

Returns
Type Description
IReadOnlyList<ICalProperty>
View Source

GetProperty(string)

Gets the first property with the specified name (case-insensitive), or null.

Declaration
public ICalProperty? GetProperty(string name)
Parameters
Type Name Description
string name

Specifies the name value.

Returns
Type Description
ICalProperty
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX