AdsConnection.DisconnectAsync 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.
Exceptions
|
Exception |
Condition |
|---|---|