OPC Studio User's Guide and Reference
FromDADataSource Method



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess Namespace > DAReadParameters Class : FromDADataSource Method
Selects the data source for OPC reads (from device, from OPC cache, or dynamically determined).
Converts a DADataSource to a DAReadParameters object.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromDADataSource( _
   ByVal dataSource As DADataSource _
) As DAReadParameters
'Usage
 
Dim dataSource As DADataSource
Dim value As DAReadParameters
 
value = DAReadParameters.FromDADataSource(dataSource)
[NotNull()]
public static DAReadParameters FromDADataSource( 
   DADataSource dataSource
)
[NotNull()]
public:
static DAReadParameters^ FromDADataSource( 
   DADataSource dataSource
) 

Parameters

dataSource
Selects the data source for OPC reads (from device, from OPC cache, or dynamically determined).

Return Value

Returns a DAReadParameters object converted from the input argument.

This method never returns null (Nothing in Visual Basic).

Remarks

In languages that support implicit conversions (such as C# or VB.NET), in many cases you do not have call this method explicitly. When indicated, a call to an available equivalent implicit conversion operator will be created by the compiler automatically.

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