CommandBarComboBoxClass.AddItem(String, Object) Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.