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

ADS · 0 次阅读

InstanceCollection.T..GetInstance Method

Gets the IInstanceby instance path.

Namespace:  TwinCAT.TypeSystem.Generic
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public T GetInstance(
    string instanceSpecifier
)

VB

Public Function GetInstance ( 
    instanceSpecifier As String
) As T

Parameters

instanceSpecifier

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

Return Value

Type: T
T.

Exceptions

Exception

Condition

ArgumentException

Path not found!;instancePath