ResultValueTValue Class

ADS Result object returning a generic value result (TValue) (asynchronous read). Implements the ResultAds

Inheritance Hierarchy

SystemObject
  TwinCAT.AdsResultAds
    TwinCAT.AdsResultValueTValue
      TwinCAT.AdsResultAnyValue
      TwinCAT.AdsResultValue2I, V
      TwinCAT.TypeSystemResultDataTypes
      TwinCAT.TypeSystemResultSymbolsT

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

Syntax

C#

public class ResultValue<TValue> : ResultAds

Type Parameters

TValue

The type of the result value.

The ResultValueTValue type exposes the following members.

Properties

 

Name

Description

Empty

Gets the Empty result initialized to NoError and the default of TValue.

ErrorCode

Gets the ADS Error code bound to this Result object.
(Inherited from ResultAds)

Failed

Gets a value indicating whether the ResultAds state is failed.
(Inherited from ResultAds)

InvokeId

Gets the ADS requests invoke identifier (or 0 if not supported)
(Inherited from ResultAds)

Succeeded

Gets a value indicating whether the ResultAds state is succeeded.
(Inherited from ResultAds)

TimeStamp

Gets the time stamp of the result.
(Inherited from ResultAds)

Value

The value object.

Methods

 

Name

Description

CreateError

Creates an Error Result.

CreateSuccess

Creates a success result.

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)

GetHashCode

Serves as the default hash function.
(Inherited from Object)

GetType

Gets the Type of the current instance.
(Inherited from Object)

MemberwiseClone

Creates a shallow copy of the current Object.
(Inherited from Object)

SetError

Sets the error state of this ResultAds
(Inherited from ResultAds)

ToString

Returns a string that represents the current object.
(Inherited from Object)

Fields

 

Name

Description

timeStamp

The timestamp
(Inherited from ResultAds)

Remarks

The ResultValueTValue type is used in generic ADS read operations, where a value is returned.

Reference

TwinCAT.Ads Namespace ResultAds

Beckhoff Automation GmbH & Co. KG 2001-2026