Class PostalAddressList

PostalAddressList class

List of postal addresses for a contact.

public class PostalAddressList : IList<PostalAddress>

Constructors

NameDescription
PostalAddressList()The default constructor.

Properties

NameDescription
Count { get; }Gets the number of elements contained in the ICollection.
HomeAddress { get; set; }Default home address
IsReadOnly { get; }Gets a value indicating whether the list is read-only.
Item { get; set; }Gets or sets the element at the specified index.
OtherAddress { get; set; }Default other address
WorkAddress { get; set; }Default work address

Methods

NameDescription
Add(PostalAddress)Adds an item to the list.
Clear()Removes all items from the list.
Contains(PostalAddress)Determines whether the list contains a specific value.
CopyTo(PostalAddress[], int)Copies the elements to an array, starting at a particular array index.
GetEnumerator()Returns an enumerator that iterates through a collection.
IndexOf(PostalAddress)Determines the index of a specific item in the list.
Insert(int, PostalAddress)Inserts an item to the list at the specified index.
Remove(PostalAddress)Removes the first occurrence of a specific object from the list.
RemoveAt(int)Removes the list item at the specified index.

See Also