InstanceCollectionTGetInstance Method

Gets the IInstanceby instance path.


Namespace: TwinCAT.TypeSystem.Generic
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public T GetInstance(
    string instanceSpecifier
)

Parameters

instanceSpecifier  String

The instance path or Instance Name (dependent of Mode setting)

Return Value

T
T.

Implements

IInstanceCollectionTGetInstance(String)

Exceptions

Exception

Condition

ArgumentException

Path not found!;instancePath

Reference

InstanceCollectionT Class TwinCAT.TypeSystem.Generic Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026