Skip to content

Reference

OpcNodeMemberInfo Members

Provides metadata of a member declared by a node type.

Reference

OpcNodeMemberInfo Members ​

Type
OpcNodeMemberInfo
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Properties ​

Category ​

abstract · since v2.50

Gets the NodeCategory attribute which identifies the kind of node and is therefore used to classify the node regarding its use and purpose.

csharp
public abstract OpcNodeCategory Category { get; }
vbnet
Public MustOverride ReadOnly Property Category As OpcNodeCategory

Property value

OpcNodeCategory

One of the members defined by the OpcNodeCategory enumeration.

Implements

Category

DeclaringType ​

Gets the type that declares the current OpcNodeMemberInfo.

csharp
public OpcNodeTypeInfo DeclaringType { get; }
vbnet
Public ReadOnly Property DeclaringType As OpcNodeTypeInfo

Property value

OpcNodeTypeInfo

An instance of the OpcNodeTypeInfo which declares the current OpcNodeMemberInfo.

Description ​

abstract · since v2.50

Gets the value of the optional Description attribute which shall explain the meaning of the node.

csharp
public abstract OpcText Description { get; }
vbnet
Public MustOverride ReadOnly Property Description As OpcText

Property value

OpcText

A localizable instance of the OpcText class which optionally explains the meaning of the node or a null reference (Nothing in Visual Basic) if there is no description associated with the node.

Implements

Description

Remarks

The menaning of the node defines the usage, the context and the purpose of the node.

DisplayName ​

abstract · since v2.50

Gets the value of the DisplayName attribute which defines the localizable name of the node.

csharp
public abstract OpcText DisplayName { get; }
vbnet
Public MustOverride ReadOnly Property DisplayName As OpcText

Property value

OpcText

An instance of the OpcText class which defines the localizable name of the node.

Implements

DisplayName

Remarks

Client application should use this attribute if they want to display the name of the node to the user. The string part of the DisplayName is restricted to 512 characters.

Documentation ​

virtual

Gets any semantic information that would help a human to understand what is contained in the member.

csharp
public virtual string Documentation { get; }
vbnet
Public Overridable ReadOnly Property Documentation As String

Property value

String

A human readable text that describes what is contained in the member and that would help a human to understand what the member represented.

Id ​

abstract · since v2.50

Gets the value of the NodeId attribute which unambiguously identifies the node.

csharp
public abstract OpcNodeId Id { get; }
vbnet
Public MustOverride ReadOnly Property Id As OpcNodeId

Property value

OpcNodeId

An instance of the OpcNodeId class representing the unambiguously identifier of the node.

Implements

Id

Remarks

Some servers may accept alternative node identifiers in addition to the canonical node identifier represented by this attribute.

A server shall persist the node identifier of a node, that is, it shall not generate new node identifiers when rebooting.

IsOptional ​

virtual

Gets a value indicating whether the current member might not necessarily exist in the object defined by the DeclaringType.

csharp
public virtual bool IsOptional { get; }
vbnet
Public Overridable ReadOnly Property IsOptional As Boolean

Property value

Boolean

The value true if the member might not always exists; otherwise the value false.

Implements

IsOptional

MemberType ​

Gets the type of value this member provides.

csharp
public OpcNodeTypeInfo MemberType { get; }
vbnet
Public ReadOnly Property MemberType As OpcNodeTypeInfo

Property value

OpcNodeTypeInfo

The OpcNodeTypeInfo representing the type of value this member provides.

Name ​

Gets the value of the BrowseName attribute which defines the non-localizable human-readable name used when browsing the address space.

csharp
public OpcName Name { get; }
vbnet
Public ReadOnly Property Name As OpcName

Property value

OpcName

Implements

Name

Remarks

The Name should never be used to display the name of the a node. Use the DisplayName instead for this purpose.

Unlike node identifiers the Name cannot be used to unambiguously identify the node. Different nodes may have the same browse name. The namespace is provided to make the browse name unique in some cases in the context of a node (e.g. properties of a node) although not unique in the context of the server. If different organizations define browse names for properties, the namespace of the Name provided by the organization makes the Name unique, although different organizations may use the same string having a slightly different meaning. Servers may often choose to use the same namespace for the node identifier and the browse name. However, if they want to provide a standard property, its browse name shall have the namespace of the standards body although the namespace of the node identifier reflects something else, for example the local server.

It is recommended that standard bodies defining standard type definitions use their namespace for the node identifier of the type definition node as well as for the browse name of the type definition node.

The string-part of the browse name is case sensitive. That is, clients shall consider them case sensitive. Server are allowed to handle browse names passed in service requests as case insensitive.

Use the value of this property to construct browse paths (see OpcNamePath).

Parent ​

abstract · since v2.50

Gets the node which contains the member.

csharp
public abstract IOpcNodeInfo Parent { get; }
vbnet
Public MustOverride ReadOnly Property Parent As IOpcNodeInfo

Property value

IOpcNodeInfo

An instance implementing the IOpcNodeInfo interface which represents the parent node of the member, or a null reference (Nothing in Visual Basic) if no parent node is known.

Exceptions

ExceptionCondition
NotSupportedExceptionThe member is declared by a node type defined by a .NET type.

Implements

Parent

ReflectedType ​

Gets the type that was used to obtain this instance of OpcNodeMemberInfo.

csharp
public OpcNodeTypeInfo ReflectedType { get; }
vbnet
Public ReadOnly Property ReflectedType As OpcNodeTypeInfo

Property value

OpcNodeTypeInfo

An instance of the OpcNodeTypeInfo used to obtain this instance.

Rule ​

abstract · since v2.50

Gets the modelling rule of the member.

csharp
public abstract OpcModellingRule? Rule { get; }
vbnet
Public MustOverride ReadOnly Property Rule As OpcModellingRule?

Property value

Nullable<OpcModellingRule>

One of the members defined by the OpcModellingRule enumeration, or a null reference (Nothing in Visual Basic) if the member has no modelling rule or it can't be determined.

Exceptions

ExceptionCondition
NotSupportedExceptionThe member is declared by a node type defined by a .NET type.

Implements

Rule

SymbolicName ​

abstract · since v2.50

Gets a symbolic name for the member which is not expected to be globally unique.

csharp
public abstract string SymbolicName { get; }
vbnet
Public MustOverride ReadOnly Property SymbolicName As String

Property value

String

The symbolic name of the member, or a null reference (Nothing in Visual Basic) if there is no symbolic name assigned.

Exceptions

ExceptionCondition
NotSupportedExceptionThe member is declared by a node type defined by a .NET type.

Implements

SymbolicName

UserWriteAccess ​

abstract · since v2.50

Gets the value of the optional UserWriteAccess attribute of the member which exposes the possibilities of a client to write the attributes of the member taking user access rights into account.

csharp
public abstract OpcAttributeWriteAccess UserWriteAccess { get; }
vbnet
Public MustOverride ReadOnly Property UserWriteAccess As OpcAttributeWriteAccess

Property value

OpcAttributeWriteAccess

A combination of the members defined by the OpcAttributeWriteAccess enumeration.

Exceptions

ExceptionCondition
NotSupportedExceptionThe member is declared by a node type defined by a .NET type.

Implements

UserWriteAccess

WriteAccess ​

abstract · since v2.50

Gets the value of the optional WriteAccess attribute of the member which exposes the possibilities of a client to write the attributes of the member.

csharp
public abstract OpcAttributeWriteAccess WriteAccess { get; }
vbnet
Public MustOverride ReadOnly Property WriteAccess As OpcAttributeWriteAccess

Property value

OpcAttributeWriteAccess

A combination of the members defined by the OpcAttributeWriteAccess enumeration.

Exceptions

ExceptionCondition
NotSupportedExceptionThe member is declared by a node type defined by a .NET type.

Implements

WriteAccess

Methods ​

AttributeValue ​

abstract · 2 overloads · since v2.50

OverloadDescription
AttributeValue(OpcAttribute)abstract · since v2.50Retrieves the value of the attribute specified.
AttributeValue<T>(OpcAttribute)abstract · since v2.50Retrieves the value of the attribute specified.

AttributeValue(OpcAttribute) ​

abstract · since v2.50

Retrieves the value of the attribute specified.

csharp
public abstract object AttributeValue(OpcAttribute attribute)
vbnet
Public MustOverride Function AttributeValue(attribute As OpcAttribute) As Object

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration which identifies the attribute its value is queried.

Returns

Object

The value of the attribute specified or a null reference (Nothing in Visual Basic) in case there the value of the attribute is a null reference or it is not supported by the current IOpcNodeInfo.

Implements

AttributeValue

AttributeValue<T>(OpcAttribute) ​

abstract · since v2.50

Retrieves the value of the attribute specified.

csharp
public abstract T AttributeValue<T>(OpcAttribute attribute)
vbnet
Public MustOverride Function AttributeValue(Of T)(
    attribute As OpcAttribute) As T

Type parameters

NameDescription
TThe expected type of value the attribute shall offer.

Parameters

NameTypeDescription
attributeOpcAttributeOne of the members defined by the OpcAttribute enumeration which identifies the attribute its value is queried.

Returns

T

The value of the attribute as the type T specified or the default value of the type T in case there the value of the attribute is a null reference (Nothing in Visual Basic) or it is not supported by the current IOpcNodeInfo.

Implements

AttributeValue

Child ​

abstract · 3 overloads · since v2.50

OverloadDescription
Child(string)abstract · since v2.50Retrieves the immutable child node its Name (its Value) or DisplayName (its Value) matches the specified name of the node.
Child(OpcName)abstract · since v2.50Retrieves the immutable child node its Name matches exactly the name specified.
Child(OpcNamePath)abstract · since v2.50Retrieves the immutable child node following the path-of-names using the nodes its Name matches exactly the parts of the namePath specified.

Child(string) ​

abstract · since v2.50

Retrieves the immutable child node its Name (its Value) or DisplayName (its Value) matches the specified name of the node.

csharp
public abstract IOpcNodeInfo Child(string name)
vbnet
Public MustOverride Function Child(name As String) As IOpcNodeInfo

Parameters

NameTypeDescription
nameStringThe nominal information of the child node to retrieve.

Returns

IOpcNodeInfo

An instance implementing the IOpcNodeInfo interface that is known using the specified name; otherwise a null reference (Nothing in Visual Basic) in case there the server does not provide such a child node for the node.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

Implements

Child

Child(OpcName) ​

abstract · since v2.50

Retrieves the immutable child node its Name matches exactly the name specified.

csharp
public abstract IOpcNodeInfo Child(OpcName name)
vbnet
Public MustOverride Function Child(name As OpcName) As IOpcNodeInfo

Parameters

NameTypeDescription
nameOpcNameThe full qualified OpcName of the node to lookup.

Returns

IOpcNodeInfo

An instance implementing the IOpcNodeInfo interface its Name exactly matches the name specified, if such a node is a known child of this node. Otherwise a null reference (Nothing in Visual Basic).

Exceptions

ExceptionCondition
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

Implements

Child

Child(OpcNamePath) ​

abstract · since v2.50

Retrieves the immutable child node following the path-of-names using the nodes its Name matches exactly the parts of the namePath specified.

csharp
public abstract IOpcNodeInfo Child(OpcNamePath namePath)
vbnet
Public MustOverride Function Child(namePath As OpcNamePath) As IOpcNodeInfo

Parameters

NameTypeDescription
namePathOpcNamePathThe OpcNamePath of full qualified OpcNames of the nodes to follow.

Returns

IOpcNodeInfo

An instance implementing the IOpcNodeInfo interface that has been lookup following the namePath specified, if such a node is a known child of this node (and its children). Otherwise a null reference (Nothing in Basic).

Exceptions

ExceptionCondition
ArgumentNullExceptionThe namePath is a null reference (Nothing in Visual Basic).

Implements

Child

Children ​

abstract · since v2.50

Retrieves a sequence of immutable nodes organized as children of this node.

csharp
public abstract IEnumerable<IOpcNodeInfo> Children()
vbnet
Public MustOverride Function Children() As IEnumerable(Of IOpcNodeInfo)

Returns

IEnumerable<IOpcNodeInfo>

A sequence of instances implementing the IOpcNodeInfo interface which representing the nodes organized as child nodes of this node.

Implements

Children

GetValue ​

virtual

Gets the value of the member supported by the given object instance.

csharp
public virtual object GetValue(object instance)
vbnet
Public Overridable Function GetValue(instance As Object) As Object

Parameters

NameTypeDescription
instanceObjectThe object whose member value will be returned.

Returns

Object

An object containing the value of the member reflected by this instance.

Implements

GetValue

Remarks

This method throws a NotSupportedException and have to be overridden in a derived class.

References ​

abstract · since v2.50

Retrieves a sequence of immutable references between this node member and other nodes.

csharp
public abstract IEnumerable<OpcReference> References()
vbnet
Public MustOverride Function References() As IEnumerable(Of OpcReference)

Returns

IEnumerable<OpcReference>

A sequence of OpcReference instances providing hierarchical and non-hierarchical references from this node member to other nodes.

Implements

References

SetValue ​

virtual

Sets the value of the member supported by the given object instance.

csharp
public virtual void SetValue(object instance, object value)
vbnet
Public Overridable Sub SetValue(instance As Object, value As Object)

Parameters

NameTypeDescription
instanceObjectThe object whose member value will be set.
valueObjectThe value to assign to the member.

Implements

SetValue

Remarks

This method throws a NotSupportedException and have to be overridden in a derived class.

ToString ​

override

Returns a string representing the Name and MemberType of the current OpcNodeMemberInfo.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

A string representing the Name and the MemberType of the current OpcNodeMemberInfo.

Overrides

ToString()