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.
Inherited Members
Namespace: DRIT.Mail.Rfc.ICal.Parsing
Assembly: DRIT.Mail.dll
Syntax
public sealed class ICalComponent
Constructors
View SourceICalComponent(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. |
Properties
View SourceComponents
Gets the sub-components of this component, in source order.
Declaration
public List<ICalComponent> Components { get; }
Property Value
| Type | Description |
|---|---|
| List<ICalComponent> |
Name
Gets the component name (e.g. VCALENDAR, VEVENT, VTODO).
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Properties
Gets the properties of this component, in source order.
Declaration
public List<ICalProperty> Properties { get; }
Property Value
| Type | Description |
|---|---|
| List<ICalProperty> |
Methods
View SourceGetComponents(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> |
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> |
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 |