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

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).

Inheritance
object
VCardProperty
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.VCard
Assembly: DRIT.Mail.dll
Syntax
public sealed class VCardProperty

Constructors

View Source

VCardProperty(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. FN, X-MS-SPOUSE).

string value

The raw property value (escapes preserved, before unescaping).

View Source

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. FN, X-MS-SPOUSE).

string value

The raw property value (escapes preserved, before unescaping).

IReadOnlyList<VCardParameter> parameters

The parameters associated with this property.

Properties

View Source

Name

Gets the property name (e.g. FN, TEL, X-MS-SPOUSE).

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

Parameters

Gets the parameters associated with this property. May be empty.

Declaration
public IReadOnlyList<VCardParameter> Parameters { get; }
Property Value
Type Description
IReadOnlyList<VCardParameter>
View Source

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 Source

ToString()

Processes the to string data.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
  • View Source
Back to top

DR-IT Software documentation

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

Generated by DocFX