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: 4.3.0.0

Syntax

C#

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

VB

Public MustInherit Class InstanceCollection(Of T As {Class, IInstance})
    Implements IList(Of T), ICollection(Of T), 
    IEnumerable(Of T), IEnumerable, IInstanceCollection(Of T)

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:

IsReadOnly

Gets a value indicating whether this instance is read only.

InstanceCollection.T. Class 5:

Item.Int32.

Gets or sets the IInstance at the specified index.

InstanceCollection.T. Class 6:

Item.String.

Gets the IInstance with the specified instance path.

InstanceCollection.T. Class 7:

Mode

Gets the InstanceCollectionMode.

Methods

 

Name

Description

InstanceCollection.T. Class 8:

Add

Adds the specified item.

InstanceCollection.T. Class 9:

AddRange

Adds the specified items to this collection.

InstanceCollection.T. Class 10:

AsReadOnly

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

InstanceCollection.T. Class 11:

Clear

Clears this instance.

InstanceCollection.T. Class 12:

Contains(String)

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

InstanceCollection.T. Class 13:

Contains(T)

Determines whether this collection contains the specified IInstance

InstanceCollection.T. Class 14:

ContainsName

Determines whether the specified instance name contains name.

InstanceCollection.T. Class 15:

CopyTo

Copies this InstanceCollection.T. to the specified array.

InstanceCollection.T. Class 16:

Equals

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

InstanceCollection.T. Class 17:

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 18:

GetEnumerator

Gets the enumerator.

InstanceCollection.T. Class 19:

GetHashCode

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

InstanceCollection.T. Class 20:

GetInstance

Gets the IInstanceby instance path.

InstanceCollection.T. Class 21:

GetInstanceByName

Gets the name of the instance by.

InstanceCollection.T. Class 22:

GetType

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

InstanceCollection.T. Class 23:

IndexOf

Determines the index of the specified IInstance.

InstanceCollection.T. Class 24:

Insert

Inserts the specified IInstance at the specified index.

InstanceCollection.T. Class 25:

MemberwiseClone

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

InstanceCollection.T. Class 26:

Remove

Removes the specified item.

InstanceCollection.T. Class 27:

RemoveAt

Removes the IInstance at the specified index.

InstanceCollection.T. Class 28:

ToString

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

InstanceCollection.T. Class 29:

TryGetInstance

Tries to get the IInstance. of the specified path.

InstanceCollection.T. Class 30:

TryGetInstanceByName

Tries to get Instnaces by name.

Fields

 

Name

Description

InstanceCollection.T. Class 31:

_list

The _list

InstanceCollection.T. Class 32:

_pathDict

The _path dictionary

InstanceCollection.T. Class 33:

mode

The mode this InstanceCollection.T. is working in.

Reference

TwinCAT.TypeSystem.Generic Namespace