DotMSN |

# ContactList Class

A collection of all contacts.

For a list of all members of this type, see ContactList Members.

System.Object
XihSolutions.DotMSN.ContactList

[Visual Basic]
Public Class ContactList
[C#]
public class ContactList

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Remarks

Contactlist is a strongly-typed collection with extended functionality to support easy enumerating. By providing multiple enumerators one can walk through the forward list, blocked list, etc. All contacts are still stored only once in the internal collection. Example of how to use this class:

    // loop through all contacts in our forward list
    foreach(Contact contact in Contacts.Forward)
    {
        // do something with contact
    }
    // loop through all contacts available
    foreach(Contact contact in Contacts.All)
    {
        // do something with contact
    }

#### Requirements

Namespace: XihSolutions.DotMSN

Assembly: XihSolutions.DotMSN (in XihSolutions.DotMSN.dll)

#### See Also

ContactList Members | XihSolutions.DotMSN Namespace