ToolCommandBindingCollection.InsertItem Method
Inserts an item in to the collection.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected Overrides Sub InsertItem ( _
index As Integer, _
item As ToolCommandBinding _
)
protected override void InsertItem(
int index,
ToolCommandBinding item
)
protected:
virtual void InsertItem(
int index,
ToolCommandBinding^ item
) override
abstract InsertItem :
index:int *
item:ToolCommandBinding -> unit
override InsertItem :
index:int *
item:ToolCommandBinding -> unit
protected override function InsertItem(
index : int,
item : ToolCommandBinding
)
Parameters
- index
Type: System.Int32
The index where to add the item.
- item
Type: Microsoft.Windows.Design.Interaction.ToolCommandBinding
The item to add.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | item is nulla null reference (Nothing in Visual Basic). |
Remarks
This method validates that nulla null reference (Nothing in Visual Basic) items are not added to the collection.
.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.
See Also
Reference
ToolCommandBindingCollection Class
Microsoft.Windows.Design.Interaction Namespace