UniqueIdRange Class

A range of UniqueId items.

Definition

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

Remarks

When dealing with a large range, it is more efficient to use a UniqueIdRange than a typical IList<UniqueId>.

Constructors

UniqueIdRange(UniqueId, UniqueId) Initializes a new instance of the UniqueIdRange class.
UniqueIdRange(UInt32, UInt32, UInt32) Initializes a new instance of the UniqueIdRange class.

Properties

Count Get the number of unique identifiers in the range.
End Get the end of the unique identifier range.
IsReadOnly Get whether or not the range is read only.
Item Gets or sets the unique identifier at the specified index.
Max Gets the maximum unique identifier in the range.
Min Gets the minimum unique identifier in the range.
SortOrder Gets the sort order of the unique identifiers.
Start Get the start of the unique identifier range.
Validity Gets the validity, if non-zero.

Methods

Add Adds the unique identifier to the range.
Clear Clears the list.
Contains Checks if the range contains the specified unique id.
CopyTo Copies all of the unique ids in the range 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 range 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 range.
RemoveAt Removes the unique identifier at the specified index.
ToString Returns a String that represents the current UniqueIdRange.
(Overrides ObjectToString)
TryParse(String, UniqueIdRange) Attempt to parse a unique identifier range.
TryParse(String, UInt32, UniqueIdRange) Attempt to parse a unique identifier range.

Fields

All A UniqueIdRange that encompasses all messages in the folder.

See Also

Reference