CVB.Net 14.0
ServerNodeBase Class Reference

OPC/UA nodes created on a OpcUaServer. More...

Inherits NodeBase, and IServerNode.

Inherited by GenericServerNode, ServerMethodNode, ServerObjectNode, ServerObjectTypeNode, ServerVariableNodeBase, and ServerVariableTypeNode.

Static Public Member Functions

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

Protected Member Functions

 ServerNodeBase (IntPtr handle, OpcUaServer 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...
 

Static Protected Member Functions

static T EnsureNonNull< T > (T value, string name=null)
 Ensures that the given value is not null. More...
 

Properties

virtual OpcUaServer Server [get, set]
 Gets the parent OpcUaServer 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

- Public Member Functions inherited from NodeBase
void Dispose ()
 Disposes the native object wrapped by this object immediately. More...
 
- 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 nodes created on a OpcUaServer.

Constructor & Destructor Documentation

◆ ServerNodeBase()

ServerNodeBase ( IntPtr  handle,
OpcUaServer  parent 
)
protected

Creates a new client Node from the given handle .

Parameters
handleNative node handle.
parentParent OpcUaClient object.

Member Function Documentation

◆ EnsureNonNull< T >()

static T EnsureNonNull< T > ( value,
string  name = null 
)
staticprotected

Ensures that the given value is not null.

Template Parameters
TType to check.
Parameters
valueValue to check
nameOptional name to report in ArgumentNullException.
Returns
The value .
Type Constraints
T :class 

◆ FromHandle() [1/2]

static ServerNodeBase FromHandle ( IntPtr  handle,
OpcUaServer  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 ServerNodeBase FromHandle ( IntPtr  handle,
ShareObject  doShare,
OpcUaServer  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.