IEnumValueCollectionTEnumValue, TValue Interface

Interface for collections of IEnumValues. Implements the ICollectionT


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

Syntax

C#

public interface IEnumValueCollection<TEnumValue, TValue> : ICollection<TEnumValue>, 
    IEnumerable<TEnumValue>, IEnumerable
where TEnumValue : class, IEnumValue
where TValue : IConvertible

Type Parameters

TEnumValue

TValue

The IEnumValueCollectionTEnumValue, TValue type exposes the following members.

Properties

 

Name

Description

Count

Gets the number of elements contained in the ICollectionT.
(Inherited from ICollectionTEnumValue)

IsReadOnly

Gets a value indicating whether the ICollectionT is read-only.
(Inherited from ICollectionTEnumValue)

Item

Gets or sets the element at the specified index.

Methods

 

Name

Description

Add

Adds an item to the ICollectionT.
(Inherited from ICollectionTEnumValue)

Clear

Removes all items from the ICollectionT.
(Inherited from ICollectionTEnumValue)

Contains(T)

Determines whether the ICollectionT contains a specific value.
(Inherited from ICollectionTEnumValue)

Contains(String)

Determines whether [contains] [the specified name].

CopyTo

Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
(Inherited from ICollectionTEnumValue)

GetEnumerator

Returns an enumerator that iterates through the collection.
(Inherited from IEnumerableTEnumValue)

GetNames

Gets the Value Names.

GetValues

Gets the values.

Parse

Parses the specified name.

Remove

Removes the first occurrence of a specific object from the ICollectionT.
(Inherited from ICollectionTEnumValue)

TryParse(String, TEnumValue)

Tries to parse the string value of the Enum.

TryParse(String, TValue)

Tries to parse the string value of the Enum.

Reference

TwinCAT.TypeSystem Namespace ICollectionT

Beckhoff Automation GmbH & Co. KG 2001-2026