| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function Forward( _ ByVal text As String, _ ByVal attachment As Boolean _ ) As MessageStream | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MessageStream Dim text As String Dim attachment As Boolean Dim value As MessageStream value = instance.Forward(text, attachment) | |
| C# | |
|---|---|
public MessageStream Forward( string text, bool attachment ) | |
| Managed Extensions for C++ | |
|---|---|
public: MessageStream* Forward( string* text, bool attachment ) | |
| C++/CLI | |
|---|---|
public: MessageStream^ Forward( String^ text, bool attachment ) | |
Parameters
- text
- The new text for the forwarded message.
- attachment
- Determines if an attachment should be created from the forwarded part of the message.
Return Value
A MessageStream object formatted for a forwarded message.If attachment is false, this method will create a second part from the original message with Content-Type equal to "Message/RFC822". If attachment is true, this method will create an attachment from the original message with Content-Type equal to "Message/RFC822". "FW:" will automatically be prepended to the subject line of the newly created message.
This method does not change the original message.
Target Platforms: Microsoft .NET Framework 2.0