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
)
Public Sub New (
fileName As String,
contentType As ContentType
)
public:
Attachment(
String^ fileName,
ContentType^ contentType
)
new :
fileName : string *
contentType : ContentType -> Attachment
Parameters
- fileName
- Type: SystemString
Name of the file. - contentType
- Type: Aspose.Email.MimeContentType
The ContentType.
See Also