C#, VB.NET and F#
This functionality is not available under (or the text does not apply to) .NET Standard development platform.
Your application first needs to reference the QuickOPC.NET or QuickOPC-UA assemblies in order to use the functionality contained in them. How this is done depends on the language and tool you are using:
- For Visual Basic in Visual Studio, select the project in Solution Explorer, and choose Project -> Add Reference command.
- For Visual C# in Visual Studio, select the project in Solution Explorer, and choose Project -> Add Reference command.
- For Visual C++ in Visual Studio, select the project in Solution Explorer, and choose Project -> References command.
You are then typically presented with an “Add Reference” dialog. The QuickOPC “Classic” and QuickOPC-UA assemblies are listed under its Assemblies (or .NET) tab. Select those that you need (see their descriptions in “Product Parts” chapter), and press OK.
You can easily see all QuickOPC assemblies grouped together (as in the picture above), if you type “opc labs” into the search box. You can also sort the list alphabetically by Component Name, by clicking on the corresponding column header; then, scroll to the proper place in the list.
Notes:
- The list content is pulled in background, so you may need to wait a little until all components are listed and you can properly sort them or search for them.
- This documentation is for QuickOPC version 2022.1. This is known as the external version of the product. The internal version number is 5.63, and that is how the assemblies are listed in the Reference Manager.
- QuickOPC.NET assemblies need the .NET Framework 4.7 or later. The dialog filters the components according to the target platform setting of you project. You will not see QuickOPC.NET assemblies listed them listed if your project’s target framework is not set to .NET Framework 4.7 or later.
PowerShell
In PowerShell, use the Add-Type cmdlet to make QuickOPC classes available in your PowerShell session. You need to specify a full path to QuickOPC assemblies, and the assembly name that you want to use.
Example:
See Also
Examples - OPC Unified Architecture