Attachment Constructor (String, ContentType)

Initializes a new instance of the Attachment class.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public Attachment(
	string fileName,
	ContentType contentType
)

Parameters

fileName
Type: SystemString
Name of the file.
contentType
Type: Aspose.Email.MimeContentType
The ContentType.
See Also