InstanceCollection.T. Class

Base class for IInstance object collections (abstract).

Inheritance Hierarchy

System.Object
  TwinCAT.TypeSystem.Generic.InstanceCollection.T.
    TwinCAT.TypeSystem.FieldCollection
    TwinCAT.TypeSystem.Generic.SymbolCollection.T.
    TwinCAT.TypeSystem.MemberCollection
Namespace:  TwinCAT.TypeSystem.Generic
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

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

Type Parameters

T

The InstanceCollection.T. type exposes the following members.

Constructors

 

Name

Description

InstanceCollection.T. Class 1:

InstanceCollection.T.(InstanceCollectionMode)

Initializes a new instance of the InstanceCollection.T. class.

InstanceCollection.T. Class 2:

InstanceCollection.T.(IEnumerable.T., InstanceCollectionMode)

Initializes a new instance of the InstanceCollection.T. class.

Properties

 

Name

Description

InstanceCollection.T. Class 3:

Count

Gets the collection count.

InstanceCollection.T. Class 4:

InnerList

Gets the LIst of instances.

InstanceCollection.T. Class 5:

InnerPathDict

The Path dictionary

InstanceCollection.T. Class 6:

IsReadOnly

Gets a value indicating whether this instance is read only.

InstanceCollection.T. Class 7:

Item.Int32.

Gets or sets the IInstance at the specified index.

InstanceCollection.T. Class 8:

Item.String.

Gets the IInstance with the specified instance path.

InstanceCollection.T. Class 9:

Mode

The mode this InstanceCollection.T. is working in.

Methods

 

Name

Description

InstanceCollection.T. Class 10:

Add

Adds the specified item.

InstanceCollection.T. Class 11:

AddRange

Adds the specified items to this collection.

InstanceCollection.T. Class 12:

AsReadOnly

Converts the InstanceCollection.T. to an ReadOnlyInstanceCollection.T.

InstanceCollection.T. Class 13:

Clear

Clears this instance.

InstanceCollection.T. Class 14:

Contains(T)

Determines whether this collection contains the specified IInstance

InstanceCollection.T. Class 15:

Contains(String)

Determines whether this collection contains an IInstance with the specified InstanceName / InstancePath

InstanceCollection.T. Class 16:

ContainsName

Determines whether the specified instance name contains name.

InstanceCollection.T. Class 17:

CopyTo

Copies this InstanceCollection.T. to the specified array.

InstanceCollection.T. Class 18:

Equals

Determines whether the specified object is equal to the current object. (Inherited from Object.)

InstanceCollection.T. Class 19:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

InstanceCollection.T. Class 20:

GetEnumerator

Gets the enumerator.

InstanceCollection.T. Class 21:

GetHashCode

Serves as the default hash function. (Inherited from Object.)

InstanceCollection.T. Class 22:

GetInstance

Gets the IInstanceby instance path.

InstanceCollection.T. Class 23:

GetInstanceByName

Gets the name of the instance by.

InstanceCollection.T. Class 24:

GetType

Gets the Type of the current instance. (Inherited from Object.)

InstanceCollection.T. Class 25:

IndexOf

Determines the index of the specified IInstance.

InstanceCollection.T. Class 26:

Insert

Inserts the specified IInstance at the specified index.

InstanceCollection.T. Class 27:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

InstanceCollection.T. Class 28:

Remove

Removes the specified item.

InstanceCollection.T. Class 29:

RemoveAt

Removes the IInstance at the specified index.

InstanceCollection.T. Class 30:

ToString

Returns a string that represents the current object. (Inherited from Object.)

InstanceCollection.T. Class 31:

TryGetInstance

Tries to get the IInstance. of the specified path.

InstanceCollection.T. Class 32:

TryGetInstanceByName

Tries to get Instances by name.

Reference

TwinCAT.TypeSystem.Generic Namespace