AdsConnectionDisconnectAsync Method

Disconnects this IConnection.


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

Syntax

C#

public Task<bool> DisconnectAsync(
    CancellationToken cancel
)

Parameters

cancel  CancellationToken

 

Return Value

Task Boolean
true if the AdsConnection is disconnected, false if the connection was already disconnected.

Implements

IConnectionDisconnectAsync(CancellationToken)

Exceptions

Exception

Condition

ObjectDisposedException

Reference

AdsConnection Class TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026