Condividi tramite


CommandBarComboBoxClass.AddItem(String, Object) Method

Definition

Adds an item. This method is deprecated.

 virtual void AddItem(std::wstring const & Text, winrt::Windows::Foundation::IInspectable const & Index);
[System.Runtime.InteropServices.DispId(1610940416)]
public virtual void AddItem (string Text, object Index);
[<System.Runtime.InteropServices.DispId(1610940416)>]
abstract member AddItem : string * obj -> unit
override this.AddItem : string * obj -> unit
Public Overridable Sub AddItem (Text As String, Optional Index As Object)

Parameters

Text
String

The text of the item.

Index
Object

The index of the item.

Implements

Attributes

Remarks

This method is deprecated, and throws a DeprecatedException when called.

Applies to