DataTypeCollection Class

Collection of DataTypes.

Inheritance Hierarchy

SystemObject
  TwinCAT.TypeSystem.GenericDataTypeCollectionIDataType
    TwinCAT.TypeSystemDataTypeCollection

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

Syntax

C#

public class DataTypeCollection : DataTypeCollection<IDataType>, 
    IDataTypeCollection, IDataTypeCollection<IDataType>, IList<IDataType>, 
    ICollection<IDataType>, IEnumerable<IDataType>, IEnumerable

The DataTypeCollection type exposes the following members.

Constructors

 

Name

Description

DataTypeCollection Class 1:

DataTypeCollection

Initializes a new instance of the DataTypeCollection class.

DataTypeCollection Class 2:

DataTypeCollection(IEnumerableIDataType)

Initializes a new instance of the DataTypeCollection class (Copy constructor).

Properties

 

Name

Description

DataTypeCollection Class 3:

Count

Gets the count of contained IDataTypes.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 4:

Empty

Gets the empty collection.

DataTypeCollection Class 5:

IsReadOnly

Gets a value indicating whether this instance is read only.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 6:

ItemInt32

Gets or sets the IDataType at the specified index.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 7:

ItemString

Gets the IDataType with the specified name.
(Inherited from DataTypeCollectionT)

Methods

 

Name

Description

DataTypeCollection Class 8:

Add

Adds the specified item to the collection.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 9:

AddRange

Adds a range of types
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 10:

AsReadOnly

Returns A ReadOnly-Version of the DataTypeCollection.

DataTypeCollection Class 11:

Clear

Clears the collection.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 12:

Clone

Clones this DataTypeCollection (Shallow Copy)

DataTypeCollection Class 13:

Contains

Determines whether this DataTypeCollection contains the specified IDataType.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 14:

ContainsType

Determines whether the container contains the specified IDataType.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 15:

CopyTo

Copies the data types to the specified array, starting at the array index.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 16:

Equals

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

DataTypeCollection 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)

DataTypeCollection Class 18:

GetEnumerator

Gets the enumerator.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 19:

GetHashCode

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

DataTypeCollection Class 20:

GetType

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

DataTypeCollection Class 21:

IndexOf

Determines the Index of the specified IDataType.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 22:

Insert

Inserts an IDataType into the DataTypeCollection.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 23:

LookupType

Determines the specified IDataType
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 24:

MemberwiseClone

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

DataTypeCollection Class 25:

Remove

Removes the specified IDataType.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 26:

RemoveAt

Removes the IDataType object at the specified index.
(Inherited from DataTypeCollectionT)

DataTypeCollection Class 27:

ToString

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

DataTypeCollection Class 28:

TryGetType

Tries to get the specified IDataType from the IDataTypeCollectionT.
(Inherited from DataTypeCollectionT)

Fields

 

Name

Description

DataTypeCollection Class 29:

list

Internal list of data types
(Inherited from DataTypeCollectionT)

Reference

TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026