UniqueIdSet Class

A set of unique identifiers.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public class UniqueIdSet : IList<UniqueId>, 
	ICollection<UniqueId>, IEnumerable<UniqueId>, IEnumerable
Inheritance
Object    UniqueIdSet
Implements
ICollectionUniqueId, IEnumerableUniqueId, IListUniqueId, IEnumerable

Remarks

When dealing with a large number of unique identifiers, it may be more efficient to use a UniqueIdSet than a typical IList<UniqueId>.

Constructors

UniqueIdSet(SortOrder) Initializes a new instance of the UniqueIdSet class.
UniqueIdSet(IEnumerableUniqueId, SortOrder) Initializes a new instance of the UniqueIdSet class.
UniqueIdSet(UInt32, SortOrder) Initializes a new instance of the UniqueIdSet class.

Properties

Count Get the number of unique ids in the set.
IsReadOnly Get whether or not the set is read only.
Item Gets or sets the unique identifier at the specified index.
SortOrder Gets the sort order of the unique identifiers.
Validity Gets the validity, if non-zero.

Methods

Add Adds the unique identifier to the set.
AddRange Adds all of the uids to the set.
Clear Clears the list.
Contains Checks if the set contains the specified unique id.
CopyTo Copies all of the unique ids in the set to the specified array.
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 an enumerator for the set of unique ids.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
IndexOf Gets the index of the specified unique id, if it exists.
Insert Inserts the specified unique identifier at the given index.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Remove Removes the unique identifier from the set.
RemoveAt Removes the unique identifier at the specified index.
ToString Returns a String that represents the current UniqueIdSet.
(Overrides ObjectToString)
ToString(IListUniqueId) Format a generic list of unique identifiers as a string.
TryParse(String, UniqueIdSet) Attempt to parse the specified token as a set of unique identifiers.
TryParse(String, UInt32, UniqueIdSet) Attempt to parse the specified token as a set of unique identifiers.

See Also

Reference