QuickOPC User's Guide and Reference
FromDADataSource Method



OpcLabs.EasyOpcClassic 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.
Requirements

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

See Also

Reference

DAReadParameters Class
DAReadParameters Members
DADataSource Enumeration
DataSource Property