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: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public abstract class InstanceCollection<T> : IList<T>,
ICollection<T>, IEnumerable<T>, IEnumerable, IInstanceCollection<T>
where T : class, IInstanceType Parameters
|
T |
The InstanceCollection<T> type exposes the following members.
Constructors
|
|
Name |
Description |
|---|---|---|
|
|
Initializes a new instance of the InstanceCollection<T> class. | |
|
|
InstanceCollection<T>(IEnumerable<T>, InstanceCollectionMode) |
Initializes a new instance of the InstanceCollection<T> class. |
Properties
|
|
Name |
Description |
|---|---|---|
|
|
Gets the collection count. | |
|
|
Gets the LIst of instances. | |
|
|
The Path dictionary | |
|
|
Gets a value indicating whether this instance is read only. | |
|
|
Gets or sets the IInstance at the specified index. | |
|
|
Gets the IInstance with the specified instance path. | |
|
|
The mode this InstanceCollection<T> is working in. |
Methods
|
|
Name |
Description |
|---|---|---|
|
|
Adds the specified item. | |
|
|
Adds the specified items to this collection. | |
|
|
Converts the InstanceCollection<T> to an ReadOnlyInstanceCollection<T> | |
|
|
Clears this instance. | |
|
|
Determines whether this collection contains the specified IInstance | |
|
|
Determines whether this collection contains an IInstance with the specified InstanceName / InstancePath | |
|
|
Determines whether the specified instance name contains name. | |
|
|
Copies this InstanceCollection<T> to the specified array. | |
|
|
Determines whether the specified object is equal to the current object. | |
|
|
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
|
|
Gets the enumerator. | |
|
|
Serves as the default hash function. | |
|
|
Gets the IInstanceby instance path. | |
|
|
Gets the name of the instance by. | |
|
|
Gets the Type of the current instance. | |
|
|
Determines the index of the specified IInstance. | |
|
|
Inserts the specified IInstance at the specified index. | |
|
|
Creates a shallow copy of the current Object. | |
|
|
Removes the specified item. | |
|
|
Removes the IInstance at the specified index. | |
|
|
Returns a string that represents the current object. | |
|
|
Tries to get the IInstance. of the specified path. | |
|
|
Tries to get Instances by name. |