| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal text As String, _ ByVal type As ContentType, _ ByVal encoding As ContentEncoding, _ ByVal charset As String _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim text As String Dim type As ContentType Dim encoding As ContentEncoding Dim charset As String Dim instance As New MessagePartStream(text, type, encoding, charset) | |
| C# | |
|---|---|
public MessagePartStream( string text, ContentType type, ContentEncoding encoding, string charset ) | |
| Managed Extensions for C++ | |
|---|---|
public: MessagePartStream( string* text, ContentType type, ContentEncoding encoding, string* charset ) | |
| C++/CLI | |
|---|---|
public: MessagePartStream( String^ text, ContentType type, ContentEncoding encoding, String^ charset ) | |
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.
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