ResultReadWriteBytes Class

Result object for asynchronous ADS ReadWrite tasks.

Inheritance Hierarchy

System.Object
  TwinCAT.Ads.ResultAds
    TwinCAT.Ads.ResultRead
      TwinCAT.Ads.ResultReadBytes
        TwinCAT.Ads.ResultReadWriteBytes
Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public class ResultReadWriteBytes : ResultReadBytes

The ResultReadWriteBytes type exposes the following members.

Properties

 

Name

Description

ResultReadWriteBytes Class 1:

Data

The read bytes as continuous region of memory. (Inherited from ResultReadBytes.)

ResultReadWriteBytes Class 2:

ResultReadWriteBytes Class 3:

Empty

Gets the empty ResultReadWriteBytes object.

ResultReadWriteBytes Class 4:

ErrorCode

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

ResultReadWriteBytes Class 5:

Failed

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

ResultReadWriteBytes Class 6:

InvokeId

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

ResultReadWriteBytes Class 7:

ReadBytes

Gets the number of Read bytes. (Inherited from ResultRead.)

ResultReadWriteBytes Class 8:

Succeeded

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

Methods

 

Name

Description

ResultReadWriteBytes Class 9:

CreateError(AdsErrorCode)

Creates an error result;

ResultReadWriteBytes Class 10:

CreateError(AdsErrorCode, UInt32)

Creates an error result;

ResultReadWriteBytes Class 11:

CreateSuccess(ReadOnlyMemory.Byte.)

Creates a success result.

ResultReadWriteBytes Class 12:

CreateSuccess(ReadOnlyMemory.Byte., UInt32)

Creates a success result.

ResultReadWriteBytes Class 13:

Equals

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

ResultReadWriteBytes Class 14:

Finalize

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

ResultReadWriteBytes Class 15:

GetHashCode

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

ResultReadWriteBytes Class 16:

GetType

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

ResultReadWriteBytes Class 17:

MemberwiseClone

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

ResultReadWriteBytes Class 18:

SetError

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

ResultReadWriteBytes Class 19:

ToString

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

Reference

TwinCAT.Ads Namespace