AdsClientExtensions.ReadWithFallback Method (IAdsConnection, UInt32, UInt32, UInt32, Memory.Byte., Func.ResultRead, Boolean., Boolean.)

Ads Read with Fallback.

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

Syntax

C#

public static ResultRead ReadWithFallback(
    this IAdsConnection connection,
    uint indexGroup,
    uint indexOffset,
    uint fallbackOffset,
    Memory<byte> buffer,
    Func<ResultRead, bool> shouldProcessFallback,
    out bool fallback
)

Parameters

connection

Type: TwinCAT.Ads.IAdsConnection
The connection.

indexGroup

Type: System.UInt32
The index group.

indexOffset

Type: System.UInt32
The index offset.

fallbackOffset

Type: System.UInt32
The fallback offset.

buffer

Type: System.Memory.Byte.
The buffer.

shouldProcessFallback

Type: System.Func.ResultRead, Boolean.
The should process fallback.

fallback

Type: System.Boolean.
if set to true [fallback].

Return Value

Type: ResultRead
ResultRead.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAdsConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Reference

AdsClientExtensions Class

ReadWithFallback Overload

TwinCAT.Ads Namespace