InstanceCollection.T..GetInstance Method

Gets the IInstanceby instance path.

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

Syntax

C#

public T GetInstance(
    string instanceSpecifier
)

Parameters

instanceSpecifier

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

Return Value

Type: T
T.

Implements

IInstanceCollection.T..GetInstance(String)

Exceptions

Exception

Condition

ArgumentException

Path not found!;instancePath

Reference

InstanceCollection.T. Class

TwinCAT.TypeSystem.Generic Namespace