This documentation is archived and is not being maintained.

ComboBox.AddItemsCore Method

Adds the specified items to the combo box.

[Visual Basic]
Protected Overridable Sub AddItemsCore( _
   ByVal value() As Object _
)
[C#]
protected virtual void AddItemsCore(
 object[] value
);
[C++]
protected: virtual void AddItemsCore(
 Object* value __gc[]
);
[JScript]
protected function AddItemsCore(
   value : Object[]
);

Parameters

value
An array of Object to append to the ComboBox.

Exceptions

Exception Type Condition
ArgumentNullException The value was a null reference (Nothing in Visual Basic).

Remarks

The AddItemsCore method allows derived classes to provide special behavour when adding items.

Notes to Inheritors:  When overriding AddItemsCore in a derived class, be sure to call the base class's AddItemsCore method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ComboBox Class | ComboBox Members | System.Windows.Forms Namespace

Show: