QuickOPC User's Guide and Reference
SharedInstance Property (_EasyAEClientConfiguration)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.AlarmsAndEvents.ComTypes Namespace > _EasyAEClientConfiguration Interface : SharedInstance Property
A default, shared instance of the client object.
Syntax
'Declaration
 
<NotNullAttribute()>
ReadOnly Property SharedInstance As EasyAEClient
'Usage
 
Dim instance As _EasyAEClientConfiguration
Dim value As EasyAEClient
 
value = instance.SharedInstance
[NotNull()]
EasyAEClient SharedInstance {get;}
[NotNull()]
property EasyAEClient^ SharedInstance {
   EasyAEClient^ get();
}
Remarks

Use this property with care, as its usability is limited. Its main use is for testing, and for non-library application code where just a single instance is sufficient.

The default instance is not suitable for Windows Forms or similar environments, where a specific System.Threading.SynchronizationContext may be used with each form.

We do not recommend to use the default instance for library code, due to conflicts that may arise if your library sets some instance parameters which may not be the same as what other libraries or th final application expects.

Requirements

Target Platforms: .NET Framework: Windows 10, Windows Server 2012; .NET Core: Linux, macOS, Microsoft Windows

See Also

Reference

_EasyAEClientConfiguration Interface
_EasyAEClientConfiguration Members