Class VCardProperty
A raw vCard property (RFC 6350 §3.3, RFC 2425 §4). Consists of a name, an optional
list of parameters, and a value. This type provides raw access to any property,
including those not covered by the typed VCard model (e.g. X-MS-*
extension properties).
Inherited Members
Namespace: DRIT.Mail.Rfc.VCard
Assembly: DRIT.Mail.dll
Syntax
public sealed class VCardProperty
Constructors
View SourceVCardProperty(string, string)
Initializes a new instance of the VCardProperty class with no parameters.
Declaration
public VCardProperty(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The property name (e.g. |
| string | value | The raw property value (escapes preserved, before unescaping). |
VCardProperty(string, string, IReadOnlyList<VCardParameter>)
Initializes a new instance of the VCardProperty class.
Declaration
public VCardProperty(string name, string value, IReadOnlyList<VCardParameter> parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The property name (e.g. |
| string | value | The raw property value (escapes preserved, before unescaping). |
| IReadOnlyList<VCardParameter> | parameters | The parameters associated with this property. |
Properties
View SourceName
Gets the property name (e.g. FN, TEL, X-MS-SPOUSE).
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Parameters
Gets the parameters associated with this property. May be empty.
Declaration
public IReadOnlyList<VCardParameter> Parameters { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<VCardParameter> |
Value
Gets the raw property value (escapes preserved, before unescaping). Use Unescape(string) to decode text values, or SplitStructured(string, char) to split structured values before unescaping each component.
Declaration
public string Value { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceToString()
Processes the to string data.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |