C# Class Engage.Dnn.Booking.ICalUtil

Utilities for creating iCalendar files
Based off of class from Telerik's RadControl for ASP.NET AJAX
Afficher le fichier Open project: EngageSoftware/Engage-Booking Class Usage Examples

Méthodes publiques

Méthode Description
Export ( string description, string location, Appointment app, System.TimeSpan timeZoneOffset ) : string

Exports the specified appointment as an iCalendar file.

Private Methods

Méthode Description
ClientToUtc ( System.DateTime date, System.TimeSpan offset ) : System.DateTime

Adjusts the given date from client time to UTC.

FormatDate ( System.DateTime date ) : string

Formats the given date to the iCalendar date format.

WriteFileFooter ( StringBuilder output ) : void

Writes the file footer.

WriteFileHeader ( StringBuilder output ) : void

Writes the file header.

WriteTask ( string description, string location, StringBuilder output, Appointment app, System.TimeSpan timeZoneOffset ) : void

Writes the the entry for an event.

Method Details

Export() public static méthode

Exports the specified appointment as an iCalendar file.
public static Export ( string description, string location, Appointment app, System.TimeSpan timeZoneOffset ) : string
description string The appointment's description.
location string The appointment's location.
app Appointment The appointment to export.
timeZoneOffset System.TimeSpan The time zone offset.
Résultat string