| 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) | |
Parameters
- newStream
- A Stream containing data representing a complete MIME part.
| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.InvalidParameterTypeException | newStream is not a Stream. |
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.
Target Platforms: Microsoft .NET Framework 2.0