Content DispositionTry Parse(Parser Options, Byte, Int 32, Int 32, Content Disposition) Method
Try to parse the given input buffer into a new ContentDisposition instance.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the disposition was successfully parsed; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static bool TryParse(
ParserOptions? options,
byte[]? buffer,
int startIndex,
int length,
out ContentDisposition?? disposition
)Parameters
- options ParserOptions
- The parser options.
- buffer Byte
- The input buffer.
- startIndex Int32
- The starting index of the input buffer.
- length Int32
- The number of bytes in the input buffer to parse.
- disposition ContentDisposition
- The parsed disposition.
Return Value
Booleanif the disposition was successfully parsed; otherwise, .
Remarks
Parses a Content-Disposition value from the supplied buffer starting at the given index
and spanning across the specified number of bytes.