UniqueIdMap Class

A mapping of unique identifiers.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public class UniqueIdMap : IReadOnlyDictionary<UniqueId, UniqueId>, 
	IEnumerable<KeyValuePair<UniqueId, UniqueId>>, IEnumerable, 
	IReadOnlyCollection<KeyValuePair<UniqueId, UniqueId>>
Inheritance
Object    UniqueIdMap
Implements
IEnumerableKeyValuePairUniqueId, UniqueId, IReadOnlyCollectionKeyValuePairUniqueId, UniqueId, IReadOnlyDictionaryUniqueId, UniqueId, IEnumerable

Remarks

A UniqueIdMap can be used to discover the mapping of one set of unique identifiers to another.

For example, when copying or moving messages from one folder to another, it is often desirable to know what the unique identifiers are for each of the messages in the destination folder.

Constructors

UniqueIdMap Initializes a new instance of the UniqueIdMap class.

Properties

Count Gets the number of unique identifiers that have been remapped.
Destination Gets the list of unique identifiers used in the destination folder.
Item Gets the remapped unique identifier.
Keys Gets the keys.
Source Gets the list of unique identifiers used in the source folder.
Values Gets the values.

Methods

ContainsKey Checks if the specified unique identifier has been remapped.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Gets the enumerator for the remapped unique identifiers.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)
TryGetValue Tries to get the remapped unique identifier.

Fields

Empty Any empty mapping of unique identifiers.

See Also

Reference