OPC Studio User's Guide and Reference
DesiredMethod Property (DAClientMode)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.Engine Namespace > DAClientMode Class : DesiredMethod Property
Determines whether synchronous or asynchronous OPC reads and writes will be preferred.
Syntax
'Declaration
 
<DataMemberAttribute()>
Public Property DesiredMethod As DAReadWriteMethod
'Usage
 
Dim instance As DAClientMode
Dim value As DAReadWriteMethod
 
instance.DesiredMethod = value
 
value = instance.DesiredMethod
[DataMember()]
public DAReadWriteMethod DesiredMethod {get; set;}
[DataMember()]
public:
property DAReadWriteMethod DesiredMethod {
   DAReadWriteMethod get();
   void set (    DAReadWriteMethod value);
}

Property Value

The default value of this property is Asynchronous (DAReadWriteMethod.Asynchronous).

Exceptions
ExceptionDescription

An invalid enumeration value was used.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Remarks

This property is used by following client implementations:

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also