CommandBindingCollection.CopyTo Method (CommandBinding[], Int32)

 

Copies all of the items in the CommandBindingCollection to the specified one-dimensional array, starting at the specified index of the target array.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public void CopyTo(
	CommandBinding[] commandBindings,
	int index
)

Parameters

commandBindings
Type: System.Windows.Input.CommandBinding[]

The array into which the collection is copied.

index
Type: System.Int32

The index position in commandBindings at which copying starts.

Exception Condition
ArgumentNullException

commandBindings is null.

ArgumentOutOfRangeException

index is less than 0.

.NET Framework
Available since 3.0
Return to top
Show: