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




mustBeAttachmentStream
The object to add to the collection.
Add an object which can be cast to an AttachmentStream to the end of the AttachmentStreams collection.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Function Add( _
   ByVal mustBeAttachmentStream As Object _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As AttachmentStreams
Dim mustBeAttachmentStream As Object
Dim value As Integer
 
value = instance.Add(mustBeAttachmentStream)
C# 
public override int Add( 
   object mustBeAttachmentStream
)
Managed Extensions for C++ 
public: int Add( 
   Object* mustBeAttachmentStream
) override 
C++/CLI 
public:
int Add( 
   Object^ mustBeAttachmentStream
) override 

Parameters

mustBeAttachmentStream
The object to add to the collection.

Return Value

The index at which the part was added.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.InvalidParameterTypeExceptionmustBeAttachmentStream cannot be cast to an AttachmentStream.

Remarks

Use this method to add an object which can be cast to an AttachmentStream to the AttachmentStreams collection. Before adding the AttachmentStream, be sure AttachmentStream.MimeEncoding = ContentEncoding.Uuencode.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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