UniqueIdParse(String, UInt32) Method

Parse a unique identifier.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public static UniqueId Parse(
	string token,
	uint validity
)

Parameters

token  String
A string containing the unique identifier.
validity  UInt32
The UIDVALIDITY.

Return Value

UniqueId
The unique identifier.

Remarks

Parses a unique identifier.

Exceptions

ArgumentNullException token is .
FormatException token is not in the correct format.
OverflowException The unique identifier is greater than MaxValue.

See Also