Class VCardPhoneNumber
A telephone number, the value of the TEL property (RFC 6350 §6.4.1,
RFC 2426 §3.3.1).
Inherited Members
Namespace: DRIT.Mail.Rfc.VCard
Assembly: DRIT.Mail.dll
Syntax
public sealed class VCardPhoneNumber
Constructors
View SourceVCardPhoneNumber(string, IReadOnlyList<VCardPhoneType>, bool)
Initializes a new instance of the VCardPhoneNumber class.
Declaration
public VCardPhoneNumber(string number, IReadOnlyList<VCardPhoneType> types, bool isPreferred)
Parameters
| Type | Name | Description |
|---|---|---|
| string | number | The telephone number. |
| IReadOnlyList<VCardPhoneType> | types | The phone types (e.g. Work). |
| bool | isPreferred |
|
Properties
View SourceIsPreferred
Gets a value indicating whether this is the preferred phone number.
Declaration
public bool IsPreferred { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Number
Gets the telephone number.
Declaration
public string Number { get; }
Property Value
| Type | Description |
|---|---|
| string |
Types
Declaration
public IReadOnlyList<VCardPhoneType> Types { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<VCardPhoneType> |
Methods
View SourceToString()
Processes the to string data.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |