| 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.
| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.InvalidParameterTypeException | shouldBeMimeAttachmentStream is not a MimeAttachmentStream. |
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.
Target Platforms: Microsoft .NET Framework 2.0