PartialRange Constructor

Initializes a new instance of the PartialRange struct.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public PartialRange(
	long first,
	long last
)

Parameters

first  Int64
The first position in the range of results.
last  Int64
The last position in the range of results.

Remarks

Creates a new range of search or fetch results.

Both first and last must be non-zero values with the same sign. Positive positions are relative to the oldest result while negative positions are relative to the newest result.

Exceptions

ArgumentOutOfRangeException

first is 0 or has a magnitude greater than 4294967295.

-or-

last is 0, has a magnitude greater than 4294967295, or does not have the same sign as first.

See Also