Represents the collection of Contact items in the Contacts folder.
| C# | Visual Basic |
public sealed class ContactCollection : PimItemCollection, IEnumerable<Contact>, IEnumerable
Public NotInheritable Class ContactCollection _ Inherits PimItemCollection _ Implements IEnumerable(Of Contact), IEnumerable
| All Members | Methods | Properties | Events | ||
| Icon | Member | Description |
|---|---|---|
| Add(PimItem) | (Overrides PimItemCollection.Add(PimItem).) | |
| AddNew()()()() |
Creates a new Contact item, and adds it to the Contact collection.
| |
| AddNewSimContact()()()() |
Creates a new Contact item, and adds it to the Contact collection.
Requires Windows Mobile 6 or later | |
| 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.) | |
| ApplySort(PropertyDescriptor, ListSortDirection) |
Sorts the list based on a property descriptor and a sort direction.
(Inherited from PimItemCollection.) | |
| Clear()()()() |
Deletes all PIM items from the collection.
(Inherited from PimItemCollection.) | |
| Contains(Contact) |
Gets a value indicating whether a Contact item exists in the Contact collection.
| |
| Contains(Object) |
Gets a value indicating whether the collection contains the supplied PIM item.
(Inherited from PimItemCollection.) | |
| Contains(PimItem) |
Gets a value indicating whether a specific PIM item exists in the collection.
(Inherited from PimItemCollection.) | |
| CopyTo(array<Contact>[]()[][], Int32) |
Copies a ContactCollection object to an array of Contact objects, beginning at a specific array index.
| |
| CopyTo(array<PimItem>[]()[][], Int32) |
Copies all PIM items in the collection into a PimItem array, beginning at the specified array index.
(Inherited from PimItemCollection.) | |
| Count |
Returns the number of items in the collection.
(Inherited from PimItemCollection.) | |
| Dispose()()()() |
Releases all resources used by the PimItemCollection.
(Inherited from PimItemCollection.) | |
| Dispose(Boolean) | (Inherited from PimItemCollection.) | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Frees the resources of the current PimItemCollection object before it is reclaimed by the garbage collector.
(Inherited from PimItemCollection.) | |
| Find(String) |
Finds the first PimItem in the collection that passes the given restriction.
(Inherited from PimItemCollection.) | |
| Find(PropertyDescriptor, Object) |
Finds the PimItem with the matching property description value.
(Inherited from PimItemCollection.) | |
| FindNext()()()() |
This method finds the next PimItem in a collection that passes the restriction specified by the most recent call to Find(String).
(Inherited from PimItemCollection.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IncludeSimContacts()()()() |
Configures a ContactCollection to include SIM Contacts along with the rest of the Device Contacts.
SIM Contact items have a ContactType property value of ContactType.Sim.
Requires Windows Mobile 6 or later | |
| IndexOf(PimItem) |
Gets a PIM item’s position in the collection.
(Inherited from PimItemCollection.) | |
| Insert(Int32, PimItem) |
Not Implemented, use AddNew()()()() to add new items.
(Inherited from PimItemCollection.) | |
| IsFixedSize |
Gets a value indicating whether the collection has a fixed size.
(Inherited from PimItemCollection.) | |
| IsSorted |
Gets a value indicating whether the items in the collection are sorted.
(Inherited from PimItemCollection.) | |
| Item[([( Int32])]) |
Gets the Contact item with the specified index, from the Contact collection.
| |
| ItemAdded |
Occurs when a new item is added.
(Inherited from PimItemCollection.) | |
| ItemChanged |
Occurs when an item was modified.
(Inherited from PimItemCollection.) | |
| ItemDeleted |
Occurs when an item was deleted from the collection. The item itself cannot be read at this point but the EventArgs contains the ItemId of the affected item.
(Inherited from PimItemCollection.) | |
| ListChanged |
Occurs when the list changes.
(Inherited from PimItemCollection.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Remove(Contact) |
Removes the specified Contact item from the Contact collection.
| |
| Remove(PimItem) |
Removes a PimItem from the collection.
(Inherited from PimItemCollection.) | |
| RemoveAt(Int32) |
Remove the PimItem at the specified index.
(Inherited from PimItemCollection.) | |
| RemoveIndex(PropertyDescriptor) |
Removes the property descriptor from the search indexes.
(Inherited from PimItemCollection.) | |
| RemoveSort()()()() |
Removes a sort applied with ApplySort.
(Inherited from PimItemCollection.) | |
| Restrict(String) |
Returns a new ContactCollection object that contains only Contact objects that match a set of criteria, providing a filtered view of a collection of contacts.
| |
| Sort(String, Boolean) |
Sort items in a collection on a given property.
(Inherited from PimItemCollection.) | |
| Sort(String) |
Sort items in a collection on a given property.
(Inherited from PimItemCollection.) | |
| 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(String, Boolean) and ApplySort(PropertyDescriptor, ListSortDirection) methods).
(Inherited from PimItemCollection.) | |
| ToString()()()() | (Inherited from Object.) |
Equivalent to Microsoft.WindowsMobile.PocketOutlook.ContactCollection.
| Object | ||
| PimItemCollection | ||
| ContactCollection | ||