ResultValue.TValue. Class

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

Inheritance Hierarchy

System.Object
  TwinCAT.Ads.ResultAds
    TwinCAT.Ads.ResultValue.TValue.
      TwinCAT.Ads.ResultAnyValue
      TwinCAT.Ads.ResultValue2.I, V.
      TwinCAT.TypeSystem.ResultDataTypes
      TwinCAT.TypeSystem.ResultSymbols.T.
Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public class ResultValue<TValue> : ResultAds

Type Parameters

TValue

The type of the result value.

The ResultValue.TValue. type exposes the following members.

Properties

 

Name

Description

ResultValue.TValue. Class 1:

ResultValue.TValue. Class 2:

Empty

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

ResultValue.TValue. Class 3:

ErrorCode

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

ResultValue.TValue. Class 4:

Failed

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

ResultValue.TValue. Class 5:

InvokeId

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

ResultValue.TValue. Class 6:

Succeeded

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

ResultValue.TValue. Class 7:

Value

The value object.

Methods

 

Name

Description

ResultValue.TValue. Class 8:

CreateError

Creates an Error Result.

ResultValue.TValue. Class 9:

CreateSuccess

Creates a success result.

ResultValue.TValue. Class 10:

Equals

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

ResultValue.TValue. Class 11:

Finalize

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

ResultValue.TValue. Class 12:

GetHashCode

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

ResultValue.TValue. Class 13:

GetType

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

ResultValue.TValue. Class 14:

MemberwiseClone

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

ResultValue.TValue. Class 15:

SetError

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

ResultValue.TValue. Class 16:

ToString

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

Remarks

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

Reference

TwinCAT.Ads Namespace

TwinCAT.Ads.ResultAds