Mime UtilsEnumerate References(Byte, Int 32, Int 32) Method
Enumerate the Message-Id references such as those that can be found in
the In-Reply-To or References headers.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The references.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
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
IEnumerableStringThe references.
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.
Exceptions
| ArgumentNullException | buffer is . |
| ArgumentOutOfRangeException | startIndex and length do not specify a valid range in the byte array. |