IInstanceCollection.T. Interface

Generic InstanceCollection interface.

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

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

Type Parameters

T

The IInstanceCollection.T. type exposes the following members.

Properties

 

Name

Description

IInstanceCollection.T. Interface 1:

Count

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

IInstanceCollection.T. Interface 2:

IsReadOnly

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

IInstanceCollection.T. Interface 3:

Item.Int32.

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

IInstanceCollection.T. Interface 4:

Item.String.

Gets the IInstance with the specified instance path.

IInstanceCollection.T. Interface 5:

Mode

Gets the InstanceCollectionMode.

Methods

 

Name

Description

IInstanceCollection.T. Interface 6:

Add

Adds an item to the ICollection.T.. (Inherited from ICollection.T..)

IInstanceCollection.T. Interface 7:

Clear

Removes all items from the ICollection.T.. (Inherited from ICollection.T..)

IInstanceCollection.T. Interface 8:

Contains(T)

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

IInstanceCollection.T. Interface 9:

Contains(String)

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

IInstanceCollection.T. Interface 10:

ContainsName

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

IInstanceCollection.T. Interface 11:

CopyTo

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

IInstanceCollection.T. Interface 12:

GetEnumerator

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

IInstanceCollection.T. Interface 13:

GetInstance

Gets the IInstanceby instance path.

IInstanceCollection.T. Interface 14:

GetInstanceByName

Gets the IInstance by instance name.

IInstanceCollection.T. Interface 15:

IndexOf

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

IInstanceCollection.T. Interface 16:

Insert

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

IInstanceCollection.T. Interface 17:

Remove

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

IInstanceCollection.T. Interface 18:

RemoveAt

Removes the IList.T. item at the specified index. (Inherited from IList.T..)

IInstanceCollection.T. Interface 19:

TryGetInstance

Tries to get the specified instance.

IInstanceCollection.T. Interface 20:

TryGetInstanceByName

Tries to get the specified instance by name.

Reference

TwinCAT.TypeSystem Namespace