OPC/UA client to enumerate and access OPC/UA NodeBases. More...
Inherits INativeHandle.
Public Member Functions | |
OpcUaClient (string url) | |
Creates a new Client object connected to the given url . More... | |
void | Dispose () |
Disposes the native object wrapped by this object immediately. More... | |
void | Reconnect () |
Reconnects to a server when this State is equal to ClientState.Faulted. | |
bool | TryReconnect () |
Tries to reconnect to a server when this State is equal to ClientState.Faulted. More... | |
Properties | |
IntPtr | Handle [get] |
Native CVB OPCCLT handle. More... | |
bool | IsDisposed [get] |
Tests whether the native handle has been disposed. | |
string | ServerUrl [get] |
The URL this client is associated with. | |
ClientState | State [get] |
Gets the current connection state of this object. | |
ClientNodes | Nodes [get] |
Access to the IClientNodes made available by the server. | |
Properties inherited from INativeHandle | |
IntPtr | Handle [get] |
The native handle of the object. | |
bool | IsDisposed [get] |
Possibility to check whether the object has already been disposed of. | |
Events | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
Events inherited from INativeHandle | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
OPC/UA client to enumerate and access OPC/UA NodeBases.
OpcUaClient | ( | string | url | ) |
Creates a new Client object connected to the given url .
url | URL of OPC/UA server to open. |
void Dispose | ( | ) |
Disposes the native object wrapped by this object immediately.
Call this method to release the resources allocated by this node immediately. Remember that after calling Dispose, any subsequent access to references to this image will result in an ObjectDisposedException.
bool TryReconnect | ( | ) |
Tries to reconnect to a server when this State is equal to ClientState.Faulted.
true
on success; false
on failure.
|
get |
Native CVB OPCCLT handle.
It is normally not necessary to work with this handle in CVB.Net. Note that using this handle in connection with the legacy CVB managed wrappers may actually be disruptive to your application.
Implements INativeHandle.
NativeHandleEventDelegate ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.