PowerTCP Mail for .NET
MimeAttachmentStream Constructor(String,String)
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MimeAttachmentStream Class > MimeAttachmentStream Constructor : MimeAttachmentStream Constructor(String,String)




fileName
The name of the file to use to initialize the object.
charset
The character set to use for the part.
Initializes a new MimeAttachmentStream object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal fileName As String, _
   ByVal charset As String _
)
Visual Basic (Usage)Copy Code
Dim fileName As String
Dim charset As String
 
Dim instance As New MimeAttachmentStream(fileName, charset)
C# 
public MimeAttachmentStream( 
   string fileName,
   string charset
)
Managed Extensions for C++ 
public: MimeAttachmentStream( 
   string* fileName,
   string* charset
)
C++/CLI 
public:
MimeAttachmentStream( 
   String^ fileName,
   String^ charset
)

Parameters

fileName
The name of the file to use to initialize the object.
charset
The character set to use for the part.

Remarks

Use this constructor to create an new MimeAttachmentStream object initialized to the data provided in fileName using the provided charset. This constructor was provided as an easy-to-use alternative to MimeAttachmentStream(FileStream) as they both create an attachment from a file, but with MimeAttachmentStream(String) constructor, the FileStream is created internally.

When creating a MessagePartStream using this constructor, MessagePartStream.MimeEncoding will default to ContentEncoding.Base64.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.