SymbolCollection Class

Interface represents a collection of ISymbol objects.

Inheritance Hierarchy

System.Object
  TwinCAT.TypeSystem.Generic.InstanceCollection.ISymbol.
    TwinCAT.TypeSystem.Generic.SymbolCollection.ISymbol.
      TwinCAT.TypeSystem.SymbolCollection
Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public class SymbolCollection : SymbolCollection<ISymbol>, 
    ISymbolCollection, ISymbolCollection<ISymbol>, IInstanceCollection<ISymbol>, 
    IList<ISymbol>, ICollection<ISymbol>, IEnumerable<ISymbol>, 
    IEnumerable

VB

Public Class SymbolCollection
    Inherits SymbolCollection(Of ISymbol)
    Implements ISymbolCollection, ISymbolCollection(Of ISymbol), 
    IInstanceCollection(Of ISymbol), IList(Of ISymbol), ICollection(Of ISymbol), 
    IEnumerable(Of ISymbol), IEnumerable

The SymbolCollection type exposes the following members.

Properties

 

Name

Description

Count

Gets the collection count. (Inherited from InstanceCollection.T..)

IsReadOnly

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

Item.Int32.

Gets or sets the IInstance at the specified index. (Inherited from InstanceCollection.T..)

Item.String.

Gets the IInstance with the specified instance path. (Inherited from InstanceCollection.T..)

Mode

Gets the InstanceCollectionMode. (Inherited from InstanceCollection.T..)

Methods

 

Name

Description

Add

Adds the specified item. (Inherited from InstanceCollection.T..)

AddRange

Adds the specified items to this collection. (Inherited from InstanceCollection.T..)

AsReadOnly

Returns a Read only version of this collection (shallow copy).

Clear

Clears this instance. (Inherited from InstanceCollection.T..)

Clone

Clones this instance.

Contains(String)

Determines whether this collection contains an IInstance with the specified InstanceName / InstancePath (Inherited from InstanceCollection.T..)

Contains(T)

Determines whether this collection contains the specified IInstance (Inherited from InstanceCollection.T..)

ContainsName

Determines whether the specified instance name contains name. (Inherited from InstanceCollection.T..)

CopyTo

Copies this InstanceCollection.T. to the specified array. (Inherited from InstanceCollection.T..)

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

Gets the enumerator. (Inherited from InstanceCollection.T..)

GetHashCode

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

GetInstance

Gets the IInstanceby instance path. (Inherited from InstanceCollection.T..)

GetInstanceByName

Gets the name of the instance by. (Inherited from InstanceCollection.T..)

GetType

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

IndexOf

Determines the index of the specified IInstance. (Inherited from InstanceCollection.T..)

Insert

Inserts the specified IInstance at the specified index. (Inherited from InstanceCollection.T..)

MemberwiseClone

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

Remove

Removes the specified item. (Inherited from InstanceCollection.T..)

RemoveAt

Removes the IInstance at the specified index. (Inherited from InstanceCollection.T..)

ToString

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

TryGetInstance

Tries to get the IInstance. of the specified path. (Inherited from InstanceCollection.T..)

TryGetInstanceByName

Tries to get Instnaces by name. (Inherited from InstanceCollection.T..)

TryGetInstances

Try to get instances with predicate function (Inherited from SymbolCollection.T..)

Fields

 

Name

Description

_list

The _list (Inherited from InstanceCollection.T..)

_pathDict

The _path dictionary (Inherited from InstanceCollection.T..)

mode

The mode this InstanceCollection.T. is working in. (Inherited from InstanceCollection.T..)

Reference

TwinCAT.TypeSystem Namespace