CVB.Net 14.0
NodeBase Class Reference

Base class for all OPC/UA nodes. More...

Inherits INativeHandle, and INode.

Inherited by ClientNodeBase, and ServerNodeBase.

Public Member Functions

void Dispose ()
 Disposes the native object wrapped by this object immediately. More...
 

Protected Member Functions

 NodeBase (IntPtr handle)
 Creates a new Node object from the given handle . More...
 
virtual void Dispose (bool disposing)
 IDispose helper function. More...
 

Protected Attributes

object LockAnchor = new object()
 Enables thread safety for "transparent" .Net side operations.
 

Properties

IntPtr Handle [get]
 Native CVB CVOPCNODE handle. More...
 
bool IsDisposed [get]
 Tests whether the native handle has been disposed.
 
NodeId NodeId [get]
 Gets the NodeId identifying this Node.
 
string BrowseName [get]
 Gets string node identifier (especially for browsing).
 
string DisplayName [get]
 Node name for displaying it in a user interface.
 
string Description [get]
 Optional description of this node's role and behavior.
 
- 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.
 
- Properties inherited from INode
NodeId NodeId [get]
 Gets the NodeId uniquely identifying this INode.
 
string BrowseName [get]
 Gets string node identifier (especially for browsing).
 
string DisplayName [get]
 Node name for displaying it in a user interface.
 
string Description [get]
 Optional description of this node's role and behavior.
 

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...
 

Detailed Description

Base class for all OPC/UA nodes.

Constructor & Destructor Documentation

◆ NodeBase()

NodeBase ( IntPtr  handle)
protected

Creates a new Node object from the given handle .

Parameters
handleNative CVOPCNODE handle.

Member Function Documentation

◆ Dispose() [1/2]

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.

◆ Dispose() [2/2]

virtual void Dispose ( bool  disposing)
protectedvirtual

IDispose helper function.

Parameters
disposingtrue when called via IDisposable.Dispose, false when called by the finalizer.

Reimplemented in ServerMethodNode, and ServerVariableNodeBase.

Property Documentation

◆ Handle

IntPtr Handle
get

Native CVB CVOPCNODE 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.

Event Documentation

◆ ObjectDisposing

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.