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: 4.3.0.0

Syntax

C#

public bool Contains(
    string instanceSpecifier
)

VB

Public Function Contains ( 
    instanceSpecifier As String
) As Boolean

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