Click or drag to resize
MimeKit

MimeUtilsParseMessageId(Byte, Int32, Int32) Method

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

Namespace: MimeKit.Utils
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
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.
Exceptions
ExceptionCondition
ArgumentNullExceptionbuffer is null.
ArgumentOutOfRangeExceptionstartIndex and length do not specify a valid range in the byte array.
Remarks
Parses the Message-Id (or Content-Id) value, returning the addr-spec portion of the msg-id token.
See Also