MimeUtilsParseMessageId(Byte, Int32, Int32) Method

Parse a Message-Id or Content-Id header value.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static string? ParseMessageId(
	byte[] buffer,
	int startIndex,
	int length
)

Parameters

buffer  Byte
The raw byte buffer to parse.
startIndex  Int32
The index into the buffer to start parsing.
length  Int32
The length of the buffer to parse.

Return Value

String
The addr-spec portion of the msg-id token.

Remarks

Parses the Message-Id (or Content-Id) value, returning the addr-spec portion of the msg-id token.

Exceptions

ArgumentNullException buffer is .
ArgumentOutOfRangeException startIndex and length do not specify a valid range in the byte array.

See Also