InstanceCollectionTInsert Method

Inserts the specified IInstance at the specified index.


Namespace: TwinCAT.TypeSystem.Generic
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public virtual void Insert(
    int index,
    T instance
)

Parameters

index  Int32

The instance.

instance  T

The item.

Implements

IListTInsert(Int32, T)

Exceptions

Exception

Condition

ArgumentOutOfRangeException

index or index

ArgumentNullException

Reference

InstanceCollectionT Class TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026