Inserts a range of elements into the collection at a specific index.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub InsertRange ( _
index As Integer, _
collection As IEnumerable(Of T) _
)
'使用
Dim instance As LinkedElementCollection
Dim index As Integer
Dim collection As IEnumerable(Of T)
instance.InsertRange(index, collection)
public void InsertRange(
int index,
IEnumerable<T> collection
)
public:
void InsertRange(
int index,
IEnumerable<T>^ collection
)
public function InsertRange(
index : int,
collection : IEnumerable<T>
)
Parameters
index
Type: System.Int32The index of the first element to insert.
collection
Type: System.Collections.Generic.IEnumerable<T>The range of elements to insert.
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