OPC Studio User's Guide and Reference
AsClient Method (EasyUASpecializedClient)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > EasyUASpecializedClient Class : AsClient Method
Allows treating the specialized client as normal OPC UA client object.
Syntax
'Declaration
 
Public Function AsClient() As IEasyUAClient
'Usage
 
Dim instance As EasyUASpecializedClient
Dim value As IEasyUAClient
 
value = instance.AsClient()
public IEasyUAClient AsClient()
public:
IEasyUAClient^ AsClient(); 

Return Value

Returns the client object upon which this specialized client is based.

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

Exceptions
ExceptionDescription
An invoked method is not supported at all, or is not supported with the parameters used to create the object.
Remarks

For specialized clients created by derivation from IEasyUAClient(the AsXXXX methods), the result is the original client object. For stand-alone specialized clients, the results is an internal client object that the specialized client has created for its operations.

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