Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
3/29/2010

Represents the collection of Contact items in a Contact folder.

The following tables list the members exposed by the ContactCollectiontype.

Public Properties

  Name Description
AllowEdit  Gets a value indicating whether it is possible to update PIM items in the collection. (inherited from PimItemCollection)
AllowNew  Gets a value indicating whether it is possible to use AddNew to add PIM items to the collection. (inherited from PimItemCollection)
AllowRemove  Gets a value indicating whether it is possible to use either Remove or RemoveAt to remove PIM items from the collection. (inherited from PimItemCollection)
Count  Gets the number of PIM Items in the collection. (inherited from PimItemCollection)
IsFixedSize  Gets a value indicating whether the collection has a fixed size. (inherited from PimItemCollection)
IsReadOnly  Gets a value indicating whether the collection is read-only. (inherited from PimItemCollection)
IsSorted  Gets a value indicating whether the items in the collection are sorted. (inherited from PimItemCollection)
IsSynchronized  Gets a value indicating whether access to the ICollection is thread-safe. (inherited from PimItemCollection)
Item Gets the Contact from the Contact collection, with the specified index.
SortDirection  Gets the direction of the sort. (inherited from PimItemCollection)
SortProperty  Gets the sorting property descriptor. (inherited from PimItemCollection)
SupportsChangeNotification  Gets a value indicating whether a ListChanged event is raised when either the list changes, or a PIM item in the list changes. (inherited from PimItemCollection)
SupportsSearching  Gets a value indicating whether the collection supports searching using the Find method. (inherited from PimItemCollection)
SupportsSorting  Gets a value indicating whether the collection supports sorting (that is, whether it is possible to use the Sort and ApplySort methods). (inherited from PimItemCollection)
SyncRoot  Gets an object that can be used to synchronize access to the ICollection. (inherited from PimItemCollection)
Top

Public Methods(see also Protected Methods)

  Name Description
Add Overloaded.  
AddIndex  (inherited from PimItemCollection)
AddNew Creates a new Contact item, and adds it to the Contact collection.
ApplySort  (inherited from PimItemCollection)
Clear  Deletes all PIM items from the collection. (inherited from PimItemCollection)
Contains Overloaded.  
CopyTo Overloaded.  
Dispose  Overloaded. (inherited from PimItemCollection)
Equals  Overloaded. (inherited from Object)
Find  (inherited from PimItemCollection)
GetEnumerator Gets an enumerator for iterating through the Contact collection.
GetHashCode  (inherited from Object)
GetType  (inherited from Object)
IndexOf  Overloaded. (inherited from PimItemCollection)
Insert  Overloaded. (inherited from PimItemCollection)
ReferenceEquals  (inherited from Object)
Remove Overloaded.  
RemoveAt  (inherited from PimItemCollection)
RemoveIndex  (inherited from PimItemCollection)
RemoveSort  Removes a sort applied with ApplySort. (inherited from PimItemCollection)
Restrict Creates a new ContactCollectionobject that contains only those Contact items that match a set of filter criteria.
Sort  (inherited from PimItemCollection)
ToString  (inherited from Object)
Top

Protected Methods

  Name Description
Dispose  Overloaded. (inherited from PimItemCollection)
Finalize  The PimItemCollection class destructor. (inherited from PimItemCollection)
Insert  Overloaded. (inherited from PimItemCollection)
MemberwiseClone  (inherited from Object)
Top

Public Events

  Name Description
ListChanged  Occurs when either the collection changes, or when an individual PIM item in the collection changes. (inherited from PimItemCollection)
Top

Explicit Interface Implementations

  Name Description
System.Collections.IEnumerable.GetEnumerator  Gets an enumerator for iterating through the PIM item collection. (inherited from PimItemCollection)
System.ComponentModel.IBindingList.AddNew  Adds a new PIM item to the collection. (inherited from PimItemCollection)
System.Collections.ICollection.Count  Gets the number of PIM Items in the collection. (inherited from PimItemCollection)
System.Collections.IList.Item  (inherited from PimItemCollection)
Top

See Also