PowerTCP Emulation for .NET CF
Add(Option) Method
See Also  Send comments on this topic.
Dart.Emulation Namespace > OptionCollection Class > Add Method : Add(Option) Method




value
The Option to add to the OptionCollection object.
Adds a new Option to the OptionCollection object.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Add( _
   ByVal value As Option _
) 
Visual Basic (Usage)Copy Code
Dim instance As OptionCollection
Dim value As Option
 
instance.Add(value)
C# 
public void Add( 
   Option value
)
Managed Extensions for C++ 
public: void Add( 
   Option* value
) 
C++/CLI 
public:
void Add( 
   Option^ value
) 

Parameters

value
The Option to add to the OptionCollection object.

Remarks

Use this method to add a new Option to the OptionCollection, to ensure it is used during option negotiation.

If an existing item has the same Code as the new option, the existing item is removed to prevent duplication.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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