OAS Configuration API
Jump straight to Config / OPCSystemsComponent class reference
Overview
The OAS Configuration API assembly provides a single configuration class with methods for configuring the Open Automation Software platform.
The assemblies are provided in two flavors:
- .NET Standard 2.0 compatible
- Legacy .NET Framework 4 compatible
Only the .NET Standard versions are available on Nuget.
.NET Standard
Assembly: OASConfig.dll
Namespace: OASConfig
Target Framework: .NET Standard v2.0
Nuget
NuGet Package Manager
Install-Package OASIOT.OASConfig
.NET CLI
dotnet add package OASIOT.OASConfig
Assembly Reference
You can reference the OAS assemblies directly in your Dotnet project.
Windows: C:\Program Files\Open Automation Software\OAS\Controls\NetStandard\OASConfig
Linux: <oas_installation_directory>/OAS/Controls/NetStandard/OASConfig
Usage
C#
using OASConfig;
var oasConfig = new Config();
VB
Imports OASConfig
Dim oasConfig As Config = New Config()
.NET Framework
Assembly: OPCSystems.dll
Namespace: OPCSystems
Target Framework: .NET Framework v4
Assembly Reference
You can reference the OAS assemblies directly in your Dotnet project.
Windows: C:\Program Files\Open Automation Software\OAS\Controls\NetFramework/OPCSystems
Linux: <oas_installation_directory>/OAS/Controls/NetFramework/OPCSystems
Tips
If you want to move the assemblies out of the OAS installation directory, make sure you also move with it all of the related dependent assemblies in the same folder. By default, Visual Studio will include all of the dependent assemblies in the build output.
Usage
C#
using OPCSystems;
OPCSystemsComponent oasConfig = new OPCSystemsComponent();
VB
Imports OPCSystems
Dim oasConfig As OPCSystemsComponent = New OPCSystemsComponent()