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




text
The string to use to initialize the object.
type
A ContentType specifying the content type to use.
encoding
A ContentEncoding type specifying the MIME encoding to use.
charset
The character set to use for the part.
fileName
The filename to use for the part.
Initializes a new MessagePartStream with the provided parameters.

Syntax

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

Parameters

text
The string to use to initialize the object.
type
A ContentType specifying the content type to use.
encoding
A ContentEncoding type specifying the MIME encoding to use.
charset
The character set to use for the part.
fileName
The filename to use for the part.

Remarks

Use this constructor to create a complete MessagePartStream object.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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