ResultWriteControl.CreateFailed Method (AmsAddress, AdsErrorCode, AdsStateCommand)

Creates a failed ResultWriteControl object.

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

Syntax

C#

public static ResultWriteControl CreateFailed(
    AmsAddress address,
    AdsErrorCode errorCode,
    AdsStateCommand requested
)

Parameters

address

Type: TwinCAT.Ads.AmsAddress
The address.

errorCode

Type: TwinCAT.Ads.AdsErrorCode
The error code.

requested

Type: TwinCAT.Ads.AdsStateCommand
The requested.

Return Value

Type: ResultWriteControl
ResultWriteControl.

Reference

ResultWriteControl Class

CreateFailed Overload

TwinCAT.Ads Namespace