ResultAccess Class

Result class for an asynchronous access operation.

Inheritance Hierarchy

System.Object
  TwinCAT.ValueAccess.ResultAccess
    TwinCAT.ValueAccess.ResultHandleAccess
    TwinCAT.ValueAccess.ResultReadValueAccess.T.
    TwinCAT.ValueAccess.ResultWriteAccess
Namespace:  TwinCAT.ValueAccess
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public class ResultAccess

The ResultAccess type exposes the following members.

Constructors

 

Name

Description

ResultAccess Class 1:

ResultAccess(Int32, UInt32)

Initializes a new instance of the ResultAccess class.

ResultAccess Class 2:

ResultAccess(Int32, DateTimeOffset, UInt32)

Initializes a new instance of the ResultReadValueAccess struct.

Properties

 

Name

Description

ResultAccess Class 3:

DateTime

The Timestamp / the date time of the communication access.

ResultAccess Class 4:

ErrorCode

The ErrorCode of the communication access

ResultAccess Class 5:

Failed

Gets a value indicating whether this ResultAccess represents a failed access.

ResultAccess Class 6:

InvokeId

Gets the invoke identifier (optionally) or 0

ResultAccess Class 7:

Succeeded

Gets a value indicating whether this ResultAccess represents a succeeded access.

Methods

 

Name

Description

ResultAccess Class 8:

Equals

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

ResultAccess Class 9:

Finalize

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

ResultAccess Class 10:

GetHashCode

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

ResultAccess Class 11:

GetType

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

ResultAccess Class 12:

MemberwiseClone

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

ResultAccess Class 13:

SetError

Sets the error to this ResultAccess object.

ResultAccess Class 14:

ToString

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

Remarks

This result is independent of any used protocol and is used by the different protocol providers (ADS, OPC, IOT etc.)

Reference

TwinCAT.ValueAccess Namespace