ResultAds.CreateError Method (AdsErrorCode, UInt32)

Creates an Error Result.

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

Syntax

C#

public static ResultAds CreateError(
    AdsErrorCode errorCode,
    uint invokeId
)

Parameters

errorCode

Type: TwinCAT.Ads.AdsErrorCode
The error code.

invokeId

Type: System.UInt32
The ADS request invoke identifier or 0

Return Value

Type: ResultAds
ResultValue<T>.

Reference

ResultAds Class

CreateError Overload

TwinCAT.Ads Namespace