PartialRange Structure

A range of results to return in response to a SEARCH or FETCH command.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public readonly struct PartialRange : IEquatable<PartialRange>
Inheritance
Object    ValueType    PartialRange
Implements
IEquatablePartialRange

Remarks

A range of results to return in response to a SEARCH or FETCH command.

Positions within a partial range are 1-based indexes into the results, where the results are ordered from the oldest message (the message with the lowest unique identifier) to the newest message (the message with the highest unique identifier). Negative positions index the results in the opposite direction, starting from the newest message. For example, a range of 1:500 refers to the oldest 500 results while a range of -1:-500 refers to the newest 500 results.

The order of the two positions is not significant. In other words, a range of 500:400 is equivalent to a range of 400:500.

  Note

For more information about partial ranges, see rfc9394.

Constructors

PartialRange Initializes a new instance of the PartialRange struct.

Properties

First Get the first position in the range of results.
Last Get the last position in the range of results.

Methods

Equals(Object) Determines whether the specified Object is equal to the current PartialRange.
(Overrides ValueTypeEquals(Object))
Equals(PartialRange) Determines whether the specified PartialRange is equal to the current PartialRange.
GetHashCode Serves as a hash function for a PartialRange object.
(Overrides ValueTypeGetHashCode)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a String that represents the current PartialRange.
(Overrides ValueTypeToString)

Operators

Equality(PartialRange, PartialRange) Determines whether two partial ranges are equal.
Inequality(PartialRange, PartialRange) Determines whether two partial ranges are not equal.

See Also

Reference