| 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) | |
Parameters
- text
- The string to use to initialize the object.
- charset
- The character set to use for the part.
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.
Target Platforms: Microsoft .NET Framework 2.0