다음을 통해 공유


CommandBarComboBoxClass.AddItem Method

Adds an item. This method is deprecated.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

‘선언
Public Overridable Sub AddItem ( _
    Text As String, _
    Index As Object _
)
‘사용 방법
Dim instance As CommandBarComboBoxClass
Dim Text As String
Dim Index As Object

instance.AddItem(Text, Index)
public virtual void AddItem(
    string Text,
    Object Index
)
public:
virtual void AddItem(
    [InAttribute] String^ Text, 
    [InAttribute] Object^ Index
)
abstract AddItem : 
        Text:string * 
        Index:Object -> unit 
override AddItem : 
        Text:string * 
        Index:Object -> unit 
public function AddItem(
    Text : String, 
    Index : Object
)

Parameters

Implements

_CommandBarComboBox.AddItem(String, Object)

Remarks

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

.NET Framework Security

See Also

Reference

CommandBarComboBoxClass Class

CommandBarComboBoxClass Members

Microsoft.VisualStudio.CommandBars Namespace