InstanceCollection.T..Contains Method (String)

Determines whether this collection contains an IInstance with the specified InstanceName / InstancePath

Namespace:  TwinCAT.TypeSystem.Generic
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public bool Contains(
    string instanceSpecifier
)

Parameters

instanceSpecifier

Type: System.String
The instance path or Instance Name (dependent of Mode setting)

Return Value

Type: Boolean
true if [contains] [the specified instance path]; otherwise, false.

Implements

IInstanceCollection.T..Contains(String)

Exceptions

Exception

Condition

ArgumentNullException

instancePath

ArgumentException

Reference

InstanceCollection.T. Class

Contains Overload

TwinCAT.TypeSystem.Generic Namespace