CVB.Net 14.0
ClientNodeBase Class Reference

OPC/UA node created by a OpcUaClient. More...

Inherits NodeBase, and IClientNode.

Inherited by ClientMethodNode, ClientObjectNode, ClientObjectTypeNode, ClientVariableNodeBase, ClientVariableTypeNode, and GenericClientNode.

Public Member Functions

IEnumerable< IClientNodeBrowseChildren ()
 Browse all hierarchical children of this Node. More...
 
IEnumerable< IClientNodeBrowse (BrowseFilter filter)
 Browse references of this node as defined by the filter . More...
 
- Public Member Functions inherited from NodeBase
void Dispose ()
 Disposes the native object wrapped by this object immediately. More...
 
IEnumerable< IClientNodeBrowseChildren ()
 Browse all hierarchical children of this Node. More...
 
IEnumerable< IClientNodeBrowse (BrowseFilter filter)
 Browse references of this node as defined by the filter . More...
 

Static Public Member Functions

static ClientNodeBase FromHandle (IntPtr handle, OpcUaClient parent)
 Creates a new Node object from the given handle . More...
 
static ClientNodeBase FromHandle (IntPtr handle, ShareObject doShare, OpcUaClient parent)
 Creates a new Node object from the given handle . More...
 

Protected Member Functions

 ClientNodeBase (IntPtr handle, OpcUaClient parent)
 Creates a new client Node from the given handle . More...
 
- Protected Member Functions inherited from NodeBase
 NodeBase (IntPtr handle)
 Creates a new Node object from the given handle . More...
 
virtual void Dispose (bool disposing)
 IDispose helper function. More...
 

Properties

OpcUaClient Client [get]
 Gets the parent OpcUaClient object.
 
- Properties inherited from NodeBase
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.
 

Additional Inherited Members

- Protected Attributes inherited from NodeBase
object LockAnchor = new object()
 Enables thread safety for "transparent" .Net side operations.
 
- Events inherited from NodeBase
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

OPC/UA node created by a OpcUaClient.

Constructor & Destructor Documentation

◆ ClientNodeBase()

ClientNodeBase ( IntPtr  handle,
OpcUaClient  parent 
)
protected

Creates a new client Node from the given handle .

Parameters
handleNative node handle.
parentParent OpcUaClient object.

Member Function Documentation

◆ Browse()

IEnumerable< IClientNode > Browse ( BrowseFilter  filter)

Browse references of this node as defined by the filter .

Parameters
filterDefines which kind of nodes to browse. See BrowseFilter for details.
Returns
Enumerable to enumerate found IClientNodes

Implements IClientNode.

◆ BrowseChildren()

IEnumerable< IClientNode > BrowseChildren ( )

Browse all hierarchical children of this Node.

Returns
Enumerable to enumerate all children.

Implements IClientNode.

◆ FromHandle() [1/2]

static ClientNodeBase FromHandle ( IntPtr  handle,
OpcUaClient  parent 
)
static

Creates a new Node object from the given handle .

Note that this function is not intended for general use. Providing invalid values on the handle parameter will most likely lead to severe problems in your application.

Parameters
handleNative node handle.
parentThe parent object.
Returns
Concrete Node object.

◆ FromHandle() [2/2]

static ClientNodeBase FromHandle ( IntPtr  handle,
ShareObject  doShare,
OpcUaClient  parent 
)
static

Creates a new Node object from the given handle .

Note that this function is not intended for general use. Providing invalid values on the handle parameter will most likely lead to severe problems in your application.

Parameters
handleNative node handle.
doShareShareObject.Yes if you want to share ownership; ShareObject.No if you want to adopt the lifetime (e.g. after getting the handle from a classic API function.)
parentThe parent object.
Returns
Concrete Node object.