| Visual Basic (Declaration) | |
|---|---|
Public Overloads Overrides Function Add( _ ByVal mustBeMessageStream As Object _ ) As Integer | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MessageStreams Dim mustBeMessageStream As Object Dim value As Integer value = instance.Add(mustBeMessageStream) | |
| C# | |
|---|---|
public override int Add( object mustBeMessageStream ) | |
| Managed Extensions for C++ | |
|---|---|
public: int Add( Object* mustBeMessageStream ) override | |
| C++/CLI | |
|---|---|
public: int Add( Object^ mustBeMessageStream ) override | |
Parameters
- mustBeMessageStream
- The object to add to the collection.
Return Value
The index at which the part was added.| Exception | Description |
|---|---|
| Dart.PowerTCP.Mail.InvalidParameterTypeException | mustBeMessageStream cannot be cast to an MessageStream. |
Use this method to add an object which can be cast to an MessageStream to the MessageStreams collection.
Target Platforms: Microsoft .NET Framework 2.0