IEnumValueCollection<TEnumValue, TValue> Interface

Interface for collections of IEnumValues. Implements the ICollection<T>


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 IEnumValueCollection<TEnumValue, TValue> type exposes the following members.

Properties

 

Name

Description

Count

Gets the number of elements contained in the ICollection<T>.
(Inherited from ICollection<TEnumValue>)

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.
(Inherited from ICollection<TEnumValue>)

Item

Gets or sets the element at the specified index.

Methods

 

Name

Description

Add

Adds an item to the ICollection<T>.
(Inherited from ICollection<TEnumValue>)

Clear

Removes all items from the ICollection<T>.
(Inherited from ICollection<TEnumValue>)

Contains(T)

Determines whether the ICollection<T> contains a specific value.
(Inherited from ICollection<TEnumValue>)

Contains(String)

Determines whether [contains] [the specified name].

CopyTo

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
(Inherited from ICollection<TEnumValue>)

GetEnumerator

Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable<TEnumValue>)

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 ICollection<T>.
(Inherited from ICollection<TEnumValue>)

TryParse(String, TEnumValue)

Tries to parse the string value of the Enum.

TryParse(String, TValue)

Tries to parse the string value of the Enum.

See Also

Reference

TwinCAT.TypeSystem Namespace ICollection<T>

Beckhoff Automation GmbH & Co. KG 2001-2026