AdsSession Constructor (AmsNetId, Int32, SessionSettings, ILogger)

Initializes a new instance of the AdsSession class.

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

Syntax

C#

public AdsSession(
    AmsNetId netId,
    int port,
    SessionSettings settings,
    ILogger? logger
)

Parameters

netId

Type: TwinCAT.Ads.AmsNetId
The net identifier.

port

Type: System.Int32
The port.

settings

Type: TwinCAT.Ads.SessionSettings
The settings.

logger

Type: Microsoft.Extensions.Logging.ILogger
The logger interface.

Reference

AdsSession Class

AdsSession Overload

TwinCAT.Ads Namespace