MimeEntity(ContentType) Constructor

Initialize a new instance of the MimeEntity class.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected MimeEntity(
	ContentType contentType
)

Parameters

contentType  ContentType
The content type.

Remarks

Initializes the ContentType to the one provided.

Exceptions

ArgumentNullException contentType is .

See Also