| MimeUtilsTryParse(Byte, Int32, Int32, Version) Method |
Try to parse a version from a header such as Mime-Version.
Namespace: MimeKit.UtilsAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public static bool TryParse(
byte[] buffer,
int startIndex,
int length,
out Version version
)
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.
- version Version
- The parsed version.
Return Value
Booleantrue, if the version was successfully parsed,
false otherwise.
Exceptions Remarks
Parses a MIME version string from the supplied buffer starting at the given index
and spanning across the specified number of bytes.
See Also