AmsNetIdLocal Property
Gets the Local Net ID (System service must be running)
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public static AmsNetId Local { get; }Exceptions
|
Exception |
Condition |
|---|---|
|
Thrown when the image format of the PInvoke Dll TcAmsServer.dll is invalid. |
Remarks
The LocalNetId will be determined in a sequence with theses priorities
- Host IConfiguration object. Access key is 'AmsRouter:NetId'
- Environment variables (AmsRouter:NetId, AmsNetId, LocalNetId variables)
- Via Tcp (Loopback) from Router if available
- From Registry (on Windows systems)