Mime UtilsTry Parse(Byte, Int 32, Int 32, Version) Method
Try to parse a version from a header such as Mime-Version.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the version was successfully parsed; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
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
Booleanif the version was successfully parsed; otherwise, .
Remarks
Parses a MIME version string from the supplied buffer starting at the given index
and spanning across the specified number of bytes.