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




attachment
The Stream containing data from which an attachment will be created.
fileName
The filename of the attachment.
encoding
The encoding type of the attachment.
Initializes a new AttachmentStream with the data contained in attachment.

Syntax

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

Parameters

attachment
The Stream containing data from which an attachment will be created.
fileName
The filename of the attachment.
encoding
The encoding type of the attachment.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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