Infosys在阅读器中打开 / AI 翻译

ADS · 0 次阅读

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.

Exceptions

Exception

Condition

ArgumentNullException

instancePath

ArgumentException