FreezableCollection<T>.Insert Method (Int32, T)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Inserts the specified object into the FreezableCollection<T> at the specified index.

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

public void Insert(
	int index,
	T value
)

Parameters

index
Type: System.Int32

The zero-based index at which value should be inserted.

value
Type: T

The object to insert.

Exception Condition
ArgumentException

value is null.

ArgumentOutOfRangeException

index is less than 0.

- or -

index is greater than Count.

InvalidOperationException

The FreezableCollection<T> is frozen (its IsFrozen property is true).

.NET Framework
Available since 3.0
Return to top
Show: