• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ICalPropertyParser

Parses a single unfolded iCalendar property line (RFC 5545 §3.3) into an ICalProperty. A property line has the form NAME;PARAM=VALUE;PARAM=VALUE:VALUE.

Inheritance
object
ICalPropertyParser
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Rfc.ICal.Parsing
Assembly: DRIT.Mail.dll
Syntax
public static class ICalPropertyParser

Methods

View Source

GetParameterValue(IReadOnlyList<ICalParameter>, string)

Gets the first value of a parameter with the specified name (case-insensitive), or null if not present.

Declaration
public static string? GetParameterValue(IReadOnlyList<ICalParameter> parameters, string name)
Parameters
Type Name Description
IReadOnlyList<ICalParameter> parameters

Specifies the parameters value.

string name

Specifies the name value.

Returns
Type Description
string
View Source

GetParameterValues(IReadOnlyList<ICalParameter>, string)

Gets the values of all parameters with the specified name (case-insensitive).

Declaration
public static IReadOnlyList<string> GetParameterValues(IReadOnlyList<ICalParameter> parameters, string name)
Parameters
Type Name Description
IReadOnlyList<ICalParameter> parameters

Specifies the parameters value.

string name

Specifies the name value.

Returns
Type Description
IReadOnlyList<string>
View Source

Parse(string)

Parses a single unfolded iCalendar property line into an ICalProperty. The returned value is raw (escapes preserved); use Unescape(string) to decode text values.

Declaration
public static ICalProperty Parse(string line)
Parameters
Type Name Description
string line

Specifies the line value.

Returns
Type Description
ICalProperty
View Source

SplitStructured(string, char)

Splits a raw (escaped) structured value on an unescaped delimiter. Escaped delimiters (preceded by a backslash) are preserved in the current component.

Declaration
public static string[] SplitStructured(string value, char delimiter)
Parameters
Type Name Description
string value

The value to process.

char delimiter

Specifies the delimiter value.

Returns
Type Description
string[]
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX