PowerTCP Mail for .NET
Attachment Constructor(String)




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

Parameters

filePath
Used to initialize Content.
Remarks
ContentDisposition.FileName is set to the specified filePath without path information. 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