Table of Contents

Class TerminalCollection

Namespace
Loehnert.Lisrt.IO.Beckhoff.Terminals
Assembly
Loehnert.Lisrt.IO.Beckhoff.dll

Represents a collection of terminals.

public class TerminalCollection : IEnumerable<ITerminal>, IEnumerable
Inheritance
TerminalCollection
Implements
Inherited Members

Properties

this[int]

Gets the element at the specified index.

public ITerminal this[int index] { get; }

Parameters

index int

The zero-based index of the element to get.

Property Value

ITerminal

The element at the specified index.

Methods

Add(ITerminal)

Adds a terminal to the collection.

public void Add(ITerminal terminal)

Parameters

terminal ITerminal

The terminal to add to the collection.

Exceptions

ArgumentNullException

Thrown if terminal is null.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<ITerminal> GetEnumerator()

Returns

IEnumerator<ITerminal>

An enumerator that can be used to iterate through the collection.