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




items
The array of Option objects to add to the OptionCollection.
Adds an array of Option objects to the OptionCollection.

Syntax

Visual Basic (Declaration) 
Public Shadows Sub AddRange( _
   ByVal items() As Option _
) 
Visual Basic (Usage)Copy Code
Dim instance As OptionCollection
Dim items() As Option
 
instance.AddRange(items)
C# 
public new void AddRange( 
   Option[] items
)
Managed Extensions for C++ 
public: new void AddRange( 
   Option*[]* items
) 
C++/CLI 
public:
new void AddRange( 
   array<Option^>^ items
) 

Parameters

items
The array of Option objects to add to the OptionCollection.

Remarks

Use this method to add an array of Options to the OptionCollection, to ensure they are 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.