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




shouldBeMimeAttachmentStream
The object to add to the collection.
Inserts the specified object into the collection as an attachment.

Syntax

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

Parameters

shouldBeMimeAttachmentStream
The object to add to the collection.

Exceptions

ExceptionDescription
Dart.PowerTCP.Mail.InvalidParameterTypeExceptionshouldBeMimeAttachmentStream is not a MimeAttachmentStream.

Remarks

Use this method to add an object which can be cast into a MimeAttachmentStream. The appropriate collection containing attachments of this type will also be updated. Since the MessageStream.Attachments collection actually reflects the MessageStream.Parts.Attachments collection, a new MimeAttachmentStream will be added to the MessageStream.Parts.Attachments collection and the Message.Attachments collection will reflect this.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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