Attachment Constructor (String, String) |
Initializes a new instance of the
Attachment class.
Namespace:
Aspose.Email
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntaxpublic Attachment(
string fileName,
string mediaType
)
Public Sub New (
fileName As String,
mediaType As String
)
public:
Attachment(
String^ fileName,
String^ mediaType
)
new :
fileName : string *
mediaType : string -> Attachment
Parameters
- fileName
- Type: SystemString
Name of the file. - mediaType
- Type: SystemString
Type media type name.
See Also