TypeAttributeCollection Class

Collection of AdsAttributes

Inheritance Hierarchy

System.Object
  TwinCAT.TypeSystem.TypeAttributeCollection
Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public class TypeAttributeCollection : IList<ITypeAttribute>, 
    ICollection<ITypeAttribute>, IEnumerable<ITypeAttribute>, IEnumerable

VB

Public Class TypeAttributeCollection
    Implements IList(Of ITypeAttribute), ICollection(Of ITypeAttribute), 
    IEnumerable(Of ITypeAttribute), IEnumerable

The TypeAttributeCollection type exposes the following members.

Constructors

 

Name

Description

TypeAttributeCollection.

Initializes a new instance of the TypeAttributeCollection class.

TypeAttributeCollection(IEnumerable.ITypeAttribute.)

Initializes a new instance of the TypeAttributeCollection class.

Properties

 

Name

Description

Count

Gets the number of elements contained in the ICollection.T..

IsReadOnly

Gets a value indicating whether the ICollection.T. is read-only.

Item.Int32.

Gets or sets the element at the specified index.

Item.String.

Gets the String with the specified name.

Methods

 

Name

Description

Add

Adds an item to the ICollection.T..

AsReadOnly

Gets a read only version of this TypeAttributeCollection

Clear

Removes all items from the ICollection.T..

Contains(String)

Determines whether this TypeAttributeCollection contains the ITypeAttribute with the specified name.

Contains(ITypeAttribute)

Determines whether the ICollection.T. contains a specific value.

CopyTo

Copies to.

Equals

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

Finalize

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

GetEnumerator

Returns an enumerator that iterates through the collection.

GetHashCode

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

GetType

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

IndexOf

Determines the index of a specific item in the IList.T..

Insert

Inserts an item to the IList.T. at the specified index.

MemberwiseClone

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

Remove(String)

Removes the specified ITypeAttribute from the TypeAttributeCollection

Remove(ITypeAttribute)

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

RemoveAt

Removes the IList.T. item at the specified index.

ToString

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

TryGetAttribute

Tries to get the specified ITypeAttribute

TryGetValue

Tries to get the specified Attribute value.

Fields

 

Name

Description

list

List of Attributes

Reference

TwinCAT.TypeSystem Namespace