API Reference
Class
EmailIcsCalendar
Dependency-free iCalendar (.ics) generator for email attachments. Output uses CRLF line endings and folds long lines (UTF-8, 75-octet limit).
Inheritance
- Object
- EmailIcsCalendar
Constructors
public EmailIcsCalendar() #Methods
AddEvent 2 overloads
public EmailIcsCalendar WithDescription(String description) #Returns:
EmailIcsCalendarSets the calendar description (X-WR-CALDESC).
Parameters
- description System.String
public EmailIcsCalendar WithFileName(String fileName) #Returns:
EmailIcsCalendarSets the suggested file name for the payload.
Parameters
- fileName System.String
public EmailIcsCalendar WithGeneratedAt(DateTimeOffset utcTimestamp) #Returns:
EmailIcsCalendarSets the default UTC timestamp used for DTSTAMP.
Parameters
- utcTimestamp System.DateTimeOffset
public EmailIcsCalendar WithMethod(EmailIcsMethod method) #Returns:
EmailIcsCalendarSets the calendar method.
Parameters
- method HtmlForgeX.Email.EmailIcsMethod
public EmailIcsCalendar WithName(String name) #Returns:
EmailIcsCalendarSets the calendar name (X-WR-CALNAME).
Parameters
- name System.String
public EmailIcsCalendar WithProductId(String productId) #Returns:
EmailIcsCalendarSets the PRODID value.
Parameters
- productId System.String
Inherited Methods
Properties
public String FileName { get; set; } #Recommended file name for the calendar payload.
public String ContentType { get; } #Recommended content type for the payload.
public String CalendarName { get; set; } #Optional calendar name (X-WR-CALNAME).
public String CalendarDescription { get; set; } #Optional calendar description (X-WR-CALDESC).
public DateTimeOffset GeneratedAtUtc { get; set; } #Timestamp used for DTSTAMP when events do not specify one.