TEL Class
A telephone number, voice, fax, email address, or other locator used for a resouce mediated by telecommunications equipment.

Inheritance Hierarchy

OnlineSystem Object
  MARC.Everest.DataTypes HXIT
    MARC.Everest.DataTypes ANY
      MARC.Everest.DataTypes PDV <OnlineString >
        MARC.Everest.DataTypes TEL

Namespace: MARC.Everest.DataTypes
Assembly: MARC.Everest.Phone (in MARC.Everest.Phone.dll) Version: 1.5.0.0 (1.5.0)

Syntax

C#

public class TEL : PDV<string>, ITelecommunicationAddress, 
	IEquatable<TEL>

Remarks

The address is specified as a universal resource locator qualified by time specification and use codes that help in deciding which address to use for a given time and purpose

Examples

TEL flavors

string url = "mailto:b_vanarragon@hotmail.com"; // valid e-mail 
string url2 = "http://www.tsn.ca"; // valid web address 
string url3 = "tel:+1905-389-6509"; // valid phone number

TEL urlTEL = url; //implicit conversion from string to TEL
TEL urlTEL2 = url2;
TEL urlTEL3 = url3;

Console.WriteLine(TEL.EMail(urlTEL)); //should return false, urlTEL is not an email
Console.WriteLine(TEL.Phone(urlTEL3)); //should return false, urlTEL is not a phone number
Console.WriteLine(TEL.Url(urlTEL2)); //should return true, is a valid URL
Console.ReadKey();

Version Information

Everest Compact Framework

Supported in: 1.2 Compact

Everest Framework

Supported in: 1.2, 1.0

See Also