Click or drag to resize
MimeKit

MimeUtilsEnumerateReferences(Byte, Int32, Int32) Method

Enumerate the Message-Id references such as those that can be found in the In-Reply-To or References headers.

Namespace: MimeKit.Utils
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static IEnumerable<string> EnumerateReferences(
	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

IEnumerableString
The references.
Exceptions
ExceptionCondition
ArgumentNullExceptionbuffer is null.
ArgumentOutOfRangeExceptionstartIndex and length do not specify a valid range in the byte array.
Remarks
Incrementally parses Message-Ids (such as those from a References header in a MIME message) from the supplied buffer starting at the given index and spanning across the specified number of bytes.
See Also