Skip to content
Discussion options

You must be logged in to vote

Example:

var evt = new CalendarEvent
{
    // Don't use the property...
    // Summary = "Summary",
    Start = new CalDateTime(2025, 7, 14),
    End = new CalDateTime(2025, 7, 15)
};
// ... but create a custom SUMMARY property which includes the LANGUAGE parameter
var summary = new CalendarProperty("SUMMARY", "Réunion du comité");
summary.AddParameter("LANGUAGE", "fr-CA"); // RFC 5646/BCP 47 language tag
evt.AddProperty(summary);

// ... serialize the calendar
// => SUMMARY;LANGUAGE=fr-CA:Réunion du comité

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@divinebovine
Comment options

Answer selected by divinebovine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants