ContentLine Class
A property of a vCard or of an iCalendar component: [group.]NAME;PARAM=value:value ([RFC 6350] 3.3, [RFC 5545] 3.1).
public sealed class ContentLineConstructors
| Name | Description |
|---|---|
| ContentLine(string, string) | Creates a content line. |
ContentLine(string, string)
ContentLine.csProperties
| Name | Description |
|---|---|
| Group | Gets or sets the group of the property (the prefix before a dot, item1.TEL), or null. |
| Name | Gets the name of the property, in upper case. |
| Parameters | Gets the parameters of the property. |
| Value | Gets or sets the value, as it is written: the text values are escaped (\,, \;, \n). The reader decodes the values of vCard 2.1 in quoted-printable. |
Group
ContentLine.csName
ContentLine.csParameters
ContentLine.csGets the parameters of the property.
public IList<ContentLineParameter> Parameters { get; }Property value
Value
ContentLine.csMethods
| Name | Description |
|---|---|
| DecodeText(string) | Decodes an escaped text. |
| EncodeText(string) | Escapes a text: \, ,, ; and the line breaks. |
| GetComponents() | Returns the components of a structured value (separated by ;), decoded as texts. |
| GetParameter(string) | Returns the first value of a parameter. |
| GetParameterValues(string) | Returns the values of a parameter. |
| GetText() | Returns the value decoded as a text: \n is a line break, \,, \; and \\ are the characters. |
| GetTypes() | Returns the types of the property: the values of the TYPE parameters and the parameters of vCard 2.1 without a name, in lower case. |
| GetValues() | Returns the values of a value list (separated by ,), decoded as texts. |
| SetParameter(string, string?) | Sets a parameter, or removes it when the value is null. |
| ToString() | Returns the content line as it is written, without folding. |
DecodeText(string)
ContentLine.csEncodeText(string)
ContentLine.csGetComponents()
ContentLine.csReturns the components of a structured value (separated by ;), decoded as texts.
public IReadOnlyList<string> GetComponents()Returns
IReadOnlyList<string> The components.
GetParameter(string)
ContentLine.csGetParameterValues(string)
ContentLine.csReturns the values of a parameter.
public IReadOnlyList<string> GetParameterValues(string name)Parameters
namestring- The name of the parameter, without case.
Returns
IReadOnlyList<string> The values; empty when the property does not have the parameter.
GetText()
ContentLine.csGetTypes()
ContentLine.csReturns the types of the property: the values of the TYPE parameters and the parameters of vCard 2.1 without a name, in lower case.
public IReadOnlyList<string> GetTypes()Returns
IReadOnlyList<string> The types.
GetValues()
ContentLine.csReturns the values of a value list (separated by ,), decoded as texts.
public IReadOnlyList<string> GetValues()Returns
IReadOnlyList<string> The values.