IMultipart RelatedOpen(Uri, String, String) Method
Open a stream for reading the decoded content of the MIME part specified by the provided URI.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
A stream for reading the decoded content of the MIME part specified by the provided URI.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
Stream Open(
Uri uri,
out string mimeType,
out string?? charset
)Parameters
- uri Uri
- The URI.
- mimeType String
- The mime-type of the content.
- charset String
- The charset of the content (if the content is text-based)
Return Value
StreamA stream for reading the decoded content of the MIME part specified by the provided URI.
Remarks
Opens a stream for reading the decoded content of the MIME part specified by the provided URI.
Exceptions
| ArgumentNullException | uri is . |
| FileNotFoundException | The MIME part for the specified URI could not be found. |
| ObjectDisposedException | The IMultipartRelated has been disposed. |