ControlCollection.Insert Method
Inserts an item to the IList at the specified index.
Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)
Usage
'Usage
Dim instance As ControlCollection
Dim index As Integer
Dim item As ControlElement
instance.Insert(index, item)
Syntax
'Declaration
Public Sub Insert ( _
index As Integer, _
item As ControlElement _
)
public void Insert (
int index,
ControlElement item
)
public:
virtual void Insert (
int index,
ControlElement^ item
) sealed
public final void Insert (
int index,
ControlElement item
)
public final function Insert (
index : int,
item : ControlElement
)
Parameters
- index
The zero-based index at which item should be inserted.
- item
The object to insert into the IList.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | index is not a valid index in the IList. |
NotSupportedException | The IList is read-only. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
ControlCollection Class
ControlCollection Members
Microsoft.Uii.Common Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.