ResultAds Class
Base class for an (asynchronous) ADS Task Result
Inheritance Hierarchy
SystemObject
TwinCAT.AdsResultAds
TwinCAT.AdsResultDeviceInfo
TwinCAT.AdsResultHandle
TwinCAT.AdsResultNotificationHandle
TwinCAT.AdsResultRead
TwinCAT.AdsResultReadAdsState
TwinCAT.AdsResultReadDeviceState
TwinCAT.AdsResultRpcMethod
TwinCAT.AdsResultValueTValue
TwinCAT.AdsResultWrite
TwinCAT.Ads.SumCommandResultSumCommand
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public class ResultAdsThe ResultAds type exposes the following members.
Constructors
| Name | Description |
|---|---|---|
| ResultAds(AdsErrorCode) | Initializes a new instance of the ResultAds class. |
| ResultAds(AdsErrorCode, UInt32) | Initializes a new instance of the ResultAds class. |
Properties
| Name | Description |
|---|---|---|
| Empty | Gets an empty ResultAds initialized to None. |
| ErrorCode | Gets the ADS Error code bound to this Result object. |
| Failed | Gets a value indicating whether the ResultAds state is failed. |
| InvokeId | Gets the ADS requests invoke identifier (or 0 if not supported) |
| Succeeded | Gets a value indicating whether the ResultAds state is succeeded. |
| TimeStamp | Gets the time stamp of the result. |
Methods
| Name | Description |
|---|---|---|
| CreateError(AdsErrorCode) | Creates an Error Result. |
| CreateError(AdsErrorCode, UInt32) | Creates an Error Result. |
| CreateSuccess | Creates a success result. |
| CreateSuccess(UInt32) | Creates a success result. |
| CreateSuccessTValue(TValue) | Creates a success result. |
| CreateSuccessTValue(TValue, UInt32) | Creates a success result. |
| Determines whether the specified object is equal to the current object. | |
| Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
| Serves as the default hash function. | |
| Gets the Type of the current instance. | |
| Creates a shallow copy of the current Object. | |
| SetError | Sets the error state of this ResultAds |
| Returns a string that represents the current object. |
Operators
| Name | Description |
|---|---|---|
| (ResultAds to ResultAccess) | Performs an implicit conversion from ResultAds to ResultAccess. |
Remarks
The base class is used whenever an asynchronous task communicates via ADS and should return its AdsErrorCode within its tasks result.
- ResultAds Class
- ResultAds Constructor
- ResultAds(AdsErrorCode) Constructor
- ResultAds(AdsErrorCode, UInt32) Constructor
- ResultAds.Empty Property
- ResultAds.ErrorCode Property
- ResultAds.Failed Property
- ResultAds.Succeeded Property
- ResultAds.InvokeId Property
- ResultAds.TimeStamp Property
- ResultAds.TimeStamp Property
- ResultAds.CreateSuccess Method
- ResultAds.SetError Method
- ResultAds.CreateError Method
- ResultAds.CreateSuccess(UInt32) Method
- ResultAds.CreateError(AdsErrorCode) Method
- ResultAds.CreateError(AdsErrorCode, UInt32) Method
- ResultAds.CreateSuccess(UInt32) Method
- ResultAds.CreateSuccess<TValue>(TValue) Method
- ResultAds.CreateSuccess<TValue>(TValue, UInt32) Method
- ResultAnyValue Class
- ResultDeviceInfo Class
- ResultHandle Class
- ResultRead Class
- ResultReadAdsState Class
- ResultReadDeviceState Class
- ResultRpcMethod Class
- ResultWrite Class
- ResultSumCommand Class
- ResultWriteControl Class
- ResultNotificationHandle Class
- ResultNotificationHandle Class
- ResultValue<TValue> Class
- ResultAds Implicit Conversion (ResultAds to ResultAccess)
- ResultAds Implicit Conversion (ResultAds to ResultAccess)