PowerTCP Mail for .NET
Add(Stream) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > Parts Class > Add Method : Add(Stream) Method




newStream
A Stream containing data representing a complete MIME part.
Inserts the specified object into the collection as an MIME part.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Add( _
   ByVal newStream As Stream _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As Parts
Dim newStream As Stream
Dim value As Integer
 
value = instance.Add(newStream)
C# 
public int Add( 
   Stream newStream
)
Managed Extensions for C++ 
public: int Add( 
   Stream* newStream
) 
C++/CLI 
public:
int Add( 
   Stream^ newStream
) 

Parameters

newStream
A Stream containing data representing a complete MIME part.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.InvalidParameterTypeExceptionnewStream is not a Stream.

Remarks

Use this method to add a Stream containing data representing a complete MIME part. Generally, MIME parts are added by using the Add method for any of the collections contained within Parts (Parts.Attachments.Add, Parts.Simple.Add, or Parts.Complex.Add). This method should only be used by advanced users who want to add a custom MIME part.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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