PowerTCP Mail for .NET
Attachment Constructor(String,String)




Used to initialize Content.
Used to initialize ContentDisposition.FileName and ContentType.MediaType.
Constructor used to create a new Attachment and associate it with an existing file.
Syntax
Public Function New( _
   ByVal filePath As String, _
   ByVal fileName As String _
)
Dim filePath As String
Dim fileName As String
 
Dim instance As New Attachment(filePath, fileName)
public Attachment( 
   string filePath,
   string fileName
)
public: Attachment( 
   string* filePath,
   string* fileName
)
public:
Attachment( 
   String^ filePath,
   String^ fileName
)

Parameters

filePath
Used to initialize Content.
fileName
Used to initialize ContentDisposition.FileName and ContentType.MediaType.
Remarks
ContentType.MediaType is set using GetMediaTypeFromExtension. TransferEncoding is set to TransferEncoding.Base64. Attachment.ContentDisposition.Inline is initialized to false. Attachment.ContentDisposition.Inline can be set to true if the attachment should be viewed "inline".
See Also

Reference

Attachment Class
Attachment Members
Overload List


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic