Class vcardType
This is the class for the root element of an xcard.
Inherited Members
Namespace: AdditionalData
Assembly: Ng911Lib.dll
Syntax
[Serializable]
public class vcardType
Constructors
| Edit this page View SourcevcardType()
Default constructor. Used for de-serialization using XmlSerializer or to create a new object of this type.
Declaration
public vcardType()
vcardType(XmlNode)
Constructor used when programmatically parsing a XML document.
Declaration
public vcardType(XmlNode Root)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlNode | Root | Root node containing the XML for this type |
Fields
| Edit this page View SourceAny
Extension point for this class
Declaration
public XmlElement[] Any
Field Value
| Type | Description |
|---|---|
| XmlElement[] |
adr
Addresses of the subject of the vCard
Declaration
public adr[] adr
Field Value
| Type | Description |
|---|---|
| adr[] |
anniversary
Anniversary
Declaration
public anniversary anniversary
Field Value
| Type | Description |
|---|---|
| anniversary |
bday
Birth day of the subject
Declaration
public bday bday
Field Value
| Type | Description |
|---|---|
| bday |
caladruri
Array of calendar URIs for scheduling requests
Declaration
public caladruri[] caladruri
Field Value
| Type | Description |
|---|---|
| caladruri[] |
caluri
Array of calendar URIs
Declaration
public caluri[] caluri
Field Value
| Type | Description |
|---|---|
| caluri[] |
categories
Array of category information for the vCard
Declaration
public categories[] categories
Field Value
| Type | Description |
|---|---|
| categories[] |
clientpidmap
PID map items
Declaration
public clientpidmap[] clientpidmap
Field Value
| Type | Description |
|---|---|
| clientpidmap[] |
Array of e-mail address for the subject of the vCard
Declaration
public email[] email
Field Value
| Type | Description |
|---|---|
| email[] |
See Also
| Edit this page View Sourcefburl
Array of busy time information
Declaration
public fburl[] fburl
Field Value
| Type | Description |
|---|---|
| fburl[] |
fn
Array of formatted or full names for the subject of the vCard
Declaration
public fn[] fn
Field Value
| Type | Description |
|---|---|
| fn[] |
See Also
| Edit this page View Sourcegender
Gender information
Declaration
public gender gender
Field Value
| Type | Description |
|---|---|
| gender |
geo
Location or global positioning of the subject of the vCard
Declaration
public vcardTypeGeo[] geo
Field Value
| Type | Description |
|---|---|
| vcardTypeGeo[] |
group
Group information
Declaration
public group[] group
Field Value
| Type | Description |
|---|---|
| group[] |
impp
IMPP information
Declaration
public impp[] impp
Field Value
| Type | Description |
|---|---|
| impp[] |
key
Certificate containing a public key
Declaration
public key[] key
Field Value
| Type | Description |
|---|---|
| key[] |
kind
Specifies the kind of object that the vCard represents
Declaration
public kind kind
Field Value
| Type | Description |
|---|---|
| kind |
lang
Language information for the vCard
Declaration
public lang[] lang
Field Value
| Type | Description |
|---|---|
| lang[] |
logo
Logo information
Declaration
public logo[] logo
Field Value
| Type | Description |
|---|---|
| logo[] |
member
Membership information
Declaration
public member[] member
Field Value
| Type | Description |
|---|---|
| member[] |
n
Name information
Declaration
public n n
Field Value
| Type | Description |
|---|---|
| n |
nickname
Nickname information
Declaration
public nickname[] nickname
Field Value
| Type | Description |
|---|---|
| nickname[] |
note
Notes
Declaration
public note[] note
Field Value
| Type | Description |
|---|---|
| note[] |
org
Organization information
Declaration
public org[] org
Field Value
| Type | Description |
|---|---|
| org[] |
photo
Image or photograph information
Declaration
public photo[] photo
Field Value
| Type | Description |
|---|---|
| photo[] |
prodid
Product identification information
Declaration
public prodid prodid
Field Value
| Type | Description |
|---|---|
| prodid |
related
Relationship information
Declaration
public related[] related
Field Value
| Type | Description |
|---|---|
| related[] |
rev
Revision of the vCard as a timestamp
Declaration
public valuetimestamp rev
Field Value
| Type | Description |
|---|---|
| valuetimestamp |
role
Role information
Declaration
public role[] role
Field Value
| Type | Description |
|---|---|
| role[] |
sound
Sound contents information
Declaration
public sound[] sound
Field Value
| Type | Description |
|---|---|
| sound[] |
source
Source information
Declaration
public source[] source
Field Value
| Type | Description |
|---|---|
| source[] |
tel
Telephone number information
Declaration
public tel[] tel
Field Value
| Type | Description |
|---|---|
| tel[] |
title
Title information
Declaration
public title[] title
Field Value
| Type | Description |
|---|---|
| title[] |
tz
Timezone information
Declaration
public vcardTypeTZ[] tz
Field Value
| Type | Description |
|---|---|
| vcardTypeTZ[] |
uid
Globally unique ID information
Declaration
public uid uid
Field Value
| Type | Description |
|---|---|
| uid |
url
URLs for more information relating to the subject of the vCard
Declaration
public url[] url
Field Value
| Type | Description |
|---|---|
| url[] |
Properties
| Edit this page View SourceCity
Gets or sets the first locality (city) of the first address in the "adr" field. Returns null if not set. The setter creates the "adr" array if it is null.
Declaration
public string City { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Country
Gets or sets the country element of the first address in the "adr" field. Returns null if not set. The setter creates the "adr" array if it is null.
Declaration
public string Country { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Gets or sets the first email address. Returns null if not set. The setter creates the "email" array if it is null.
Declaration
public string EMail { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Ext
Gets or sets the extended (ext) address field of the first address in the "adr" field. Returns null if not set. The setter creates the "adr" array if it is null.
Declaration
public string Ext { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FirstName
Gets or sets the first (given) name in the "n" field. Returns null if not set. The setter creates the "n" array if it is null.
Declaration
public string FirstName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FullName
Gets or sets the first fn (formatted full name) field of the vcardType. Returns null if not set. The setter creates the "fn" array field if it is null.
Declaration
public string FullName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LastName
Gets or sets the last name (surname) in the "n" field. Returns null if not set. The setter creates the "n" array if it is null.
Declaration
public string LastName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MiddleName
Gets or sets the middle name in the "n" field. Returns null if not set. The setter creates the "n" array if it is null.
Declaration
public string MiddleName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PoBox
Gets or sets the first pobox element of the first address in the "adr" field. Returns null if not set. The setter creates the "adr" array if it is null.
Declaration
public string PoBox { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Prefix
Gets or sets the first name prefix (Mr., Mrs., Ms., etc) in the "n" field. Returns null if not set. The setter creates the "n" array if it is null.
Declaration
public string Prefix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
State
Gets or sets the first region (state) in the first address of the "adr" field. Returns null if not set. The setter creates the "adr" array if it is null.
Declaration
public string State { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Street
Gets or sets the first street address field of the first address in the "adr" field. Returns null if not set. The setter creates the "adr" array if it is null. in the vcardType
Declaration
public string Street { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Suffix
Gets or sets the first suffix field of the "n" field. Returns null if not set. The setter creates the "n" array if it is null.
Declaration
public string Suffix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TelephoneNumber
Gets or sets the first telephone number in the "tel" field. Returns null if not set. The setter creates the "tel" array if it is null. Telephone numbers are treated as 10-digit numeric strings by this property.
Declaration
public string TelephoneNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ZipCode
Gets or sets the first code (zip code) element of the first address in the "adr" field. Returns null if not set. The setter creates the "adr" array if it is null.
Declaration
public string ZipCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceAddObjToObjArray(object[], object, Type)
Adds an object to an array of objects of a specified type. This is a static method.
Declaration
public static object[] AddObjToObjArray(object[] ObjAry, object Obj, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| object[] | ObjAry | Original array objects. May be null. |
| object | Obj | Object to add to the end of the array. |
| Type | type | Type of the object array and the array elements |
Returns
| Type | Description |
|---|---|
| object[] | Returns a new instance of the object array. |
AddStringItem(ref string[], string)
Adds a new String to an array of strings. This is a static method.
Declaration
public static void AddStringItem(ref string[] StrAry, string strNewItem)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | StrAry | Input and output array of String objects. May be null. |
| string | strNewItem | Input String object to add to the array. |
AddTypeText(ref typeText[], XmlNode)
Adds a typeText enumeration value to an array of typeText enumeration values. This is a static function.
Declaration
public static void AddTypeText(ref typeText[] TtAry, XmlNode Node)
Parameters
| Type | Name | Description |
|---|---|---|
| typeText[] | TtAry | Input and output array of typeText enumeration values. |
| XmlNode | Node | XmlNode containing an array of "text" XML elements. |
SetFirstStringItem(ref string[], string)
Sets the first element of a string array to a specified value. If the string array is null, then an array of length 1 is created.
Declaration
public static void SetFirstStringItem(ref string[] StrAry, string Value)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | StrAry | Input string array |
| string | Value | Value to set the first item to. |
StringTotypeTextEnum(string)
Converts a String to a typeText enumeration value. This is a static method.
Declaration
public static typeText StringTotypeTextEnum(string str)
Parameters
| Type | Name | Description |
|---|---|---|
| string | str | Input String value. |
Returns
| Type | Description |
|---|---|
| typeText | Returns a typeText enumeration value. Returns a default of typeText.home. |