Mime Part(String) Constructor
Initialize a new instance of the MimePart class
with the specified content type.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MimePart(
string contentType
)Parameters
- contentType String
- The content type.
Remarks
Creates a new MimePart with the specified Content-Type value.
Exceptions
| ArgumentNullException | contentType is . |
| ParseException | contentType could not be parsed. |