Inserts a role into the collection at a specified index.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub Insert ( _
index As Integer, _
item As T _
)
'使用
Dim instance As LinkedElementCollection
Dim index As Integer
Dim item As T
instance.Insert(index, item)
public void Insert(
int index,
T item
)
public:
virtual void Insert(
int index,
T item
) sealed
public final function Insert(
index : int,
item : T
)
Parameters
index
Type: System.Int32The index to assign to the role.
item
Type: TThe role to insert.
Implements
Permissions
- 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
LinkedElementCollection<T> Class