Mime Part(String, String, Object) Constructor
Initialize a new instance of the MimePart class
with the specified media type and subtype.
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 mediaType,
string mediaSubtype,
params Object[] args
)Parameters
Remarks
Creates a new MimePart with the specified media type and subtype.
Exceptions
| ArgumentNullException |
mediaType is . -or- mediaSubtype is . -or- args is . |
| ArgumentException |
args contains more than one IMimeContent or Stream. -or- args contains one or more arguments of an unknown type. |