Class AlarmTrigger
An alarm trigger (RFC 5545 §3.8.6.3). A trigger can be a duration relative to the start or end of the component, or an absolute date-time.
Inherited Members
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class AlarmTrigger
Constructors
View SourceAlarmTrigger(ICalDateTime)
Initializes a new instance of the AlarmTrigger class as an absolute date-time.
Declaration
public AlarmTrigger(ICalDateTime dateTime)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | dateTime | The absolute trigger date-time. |
AlarmTrigger(ICalDuration)
Initializes a new instance of the AlarmTrigger class as a duration relative to the start of the component.
Declaration
public AlarmTrigger(ICalDuration duration)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDuration | duration | The trigger duration. |
AlarmTrigger(ICalDuration, AlarmTriggerRelated)
Initializes a new instance of the AlarmTrigger class as a duration relative to the specified point.
Declaration
public AlarmTrigger(ICalDuration duration, AlarmTriggerRelated related)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDuration | duration | The trigger duration. |
| AlarmTriggerRelated | related | What the duration is relative to. |
Properties
View SourceDateTime
Gets the absolute trigger date-time, or null if this is a duration trigger.
Declaration
public ICalDateTime? DateTime { get; }
Property Value
| Type | Description |
|---|---|
| ICalDateTime |
Duration
Gets the trigger duration, or null if this is a date-time trigger.
Declaration
public ICalDuration? Duration { get; }
Property Value
| Type | Description |
|---|---|
| ICalDuration |
Related
Gets what the duration is relative to (start or end). Only meaningful for duration triggers.
Declaration
public AlarmTriggerRelated Related { get; }
Property Value
| Type | Description |
|---|---|
| AlarmTriggerRelated |
Type
Gets the trigger type (duration or date-time).
Declaration
public AlarmTriggerType Type { get; }
Property Value
| Type | Description |
|---|---|
| AlarmTriggerType |