Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds an item. This method is deprecated.
Namespace: Microsoft.VisualStudio.CommandBars
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
'Declaration
Public Overridable Sub AddItem ( _
Text As String, _
Index As Object _
)
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
- Text
Type: System.String
The text of the item.
- Index
Type: System.Object
The index of the item.
Implements
_CommandBarComboBox.AddItem(String, Object)
Remarks
This method is deprecated, and throws a DeprecatedException when called.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.