ContentLineParameter Class

A parameter of a content line of a vCard or of an iCalendar object, such as TYPE=work,voice or TZID=Europe/Paris.

public sealed class ContentLineParameter

Constructors

NameDescription
ContentLineParameter(string?, IEnumerable<string>)Creates a parameter.

ContentLineParameter(string?, IEnumerable<string>)

ContentLineParameter.cs

Creates a parameter.

public ContentLineParameter(string? name, params IEnumerable<string> values)

Parameters

name string?
The name of the parameter, or null for a parameter of vCard 2.1 without a name (TEL;WORK;VOICE:).
values IEnumerable<string>
The values of the parameter.

Properties

NameDescription
NameGets the name of the parameter, or null for a parameter of vCard 2.1 without a name.
ValuesGets the values of the parameter, unquoted.

Gets the name of the parameter, or null for a parameter of vCard 2.1 without a name.

public string? Name { get; }

Property value

string?

Gets the values of the parameter, unquoted.

public IList<string> Values { get; }

Property value

IList<string>

Methods

NameDescription
ToString()Returns the parameter as it is written in a content line.

Returns the parameter as it is written in a content line.

public override string ToString()

Returns

string The parameter.