IInstanceCollectionT Interface

Generic InstanceCollection interface.


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

Syntax

C#

public interface IInstanceCollection<T> : IList<T>, 
    ICollection<T>, IEnumerable<T>, IEnumerable
where T : class, IInstance

Type Parameters

T

The IInstanceCollectionT type exposes the following members.

Properties

 

Name

Description

Count

Gets the number of elements contained in the ICollectionT.
(Inherited from ICollectionT)

IsReadOnly

Gets a value indicating whether the ICollectionT is read-only.
(Inherited from ICollectionT)

ItemInt32

Gets or sets the element at the specified index.
(Inherited from IListT)

ItemString

Gets the IInstance with the specified instance path.

Mode

Gets the InstanceCollectionMode.

Methods

 

Name

Description

Add

Adds an item to the ICollectionT.
(Inherited from ICollectionT)

Clear

Removes all items from the ICollectionT.
(Inherited from ICollectionT)

Contains(T)

Determines whether the ICollectionT contains a specific value.
(Inherited from ICollectionT)

Contains(String)

Determines whether this collection contains an instance with the specified instance path.

ContainsName

Determines whether this collection contains an instance with the specified instance name.

CopyTo

Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
(Inherited from ICollectionT)

GetEnumerator

Returns an enumerator that iterates through the collection.
(Inherited from IEnumerableT)

GetInstance

Gets the IInstanceby instance path.

GetInstanceByName

Gets the IInstance by instance name.

IndexOf

Determines the index of a specific item in the IListT.
(Inherited from IListT)

Insert

Inserts an item to the IListT at the specified index.
(Inherited from IListT)

Remove

Removes the first occurrence of a specific object from the ICollectionT.
(Inherited from ICollectionT)

RemoveAt

Removes the IListT item at the specified index.
(Inherited from IListT)

TryGetInstance

Tries to get the specified instance.

TryGetInstanceByName

Tries to get the specified instance by name.

Reference

TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026