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