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




text
The string to use to initialize the object.
charset
The character set 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 charset As String _
)
Visual Basic (Usage)Copy Code
Dim text As String
Dim charset As String
 
Dim instance As New MessagePartStream(text, charset)
C# 
public MessagePartStream( 
   string text,
   string charset
)
Managed Extensions for C++ 
public: MessagePartStream( 
   string* text,
   string* charset
)
C++/CLI 
public:
MessagePartStream( 
   String^ text,
   String^ charset
)

Parameters

text
The string to use to initialize the object.
charset
The character set to use for the part.

Remarks

Use this constructor to create a MessagePartStream object initialized with content. MessagePartStream.Text will contain content. Continue creating the part by setting the properties of the MessagePartStream object, such as MessagePartStream.Charset, MessagePartStream.Type, etc.

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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