ToolCommandBindingCollection.SetItem Method
Sets the value of an item in the collection.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected Overrides Sub SetItem ( _
index As Integer, _
item As ToolCommandBinding _
)
protected override void SetItem(
int index,
ToolCommandBinding item
)
protected:
virtual void SetItem(
int index,
ToolCommandBinding^ item
) override
abstract SetItem :
index:int *
item:ToolCommandBinding -> unit
override SetItem :
index:int *
item:ToolCommandBinding -> unit
protected override function SetItem(
index : int,
item : ToolCommandBinding
)
Parameters
- index
Type: System.Int32
The index of the value to set.
- item
Type: Microsoft.Windows.Design.Interaction.ToolCommandBinding
The value to set at the index.
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