OPC Studio User's Guide and Reference
NamespaceIndex Property (IUANodeId)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.AddressSpace Namespace > IUANodeId Interface : NamespaceIndex Property
Namespace index. Can be used to determine the namespace instead of namespace URI. Not recommended.
Syntax
'Declaration
 
ReadOnly Property NamespaceIndex As Integer
'Usage
 
Dim instance As IUANodeId
Dim value As Integer
 
value = instance.NamespaceIndex
int NamespaceIndex {get;}
property int NamespaceIndex {
   int get();
}

Property Value

The namespace index is an integer that corresponds to an entry in the server's namespace table. This table maps indexes to namespace URIs.

The default value of this property is 0.

Remarks
The namespace index is an integer that corresponds to an entry in the server's namespace table. This table maps indexes to namespace URIs.

Namespace index is an alternative way to specify the namespace for the node Id or qualified name.

Using the namespace index is not recommended for new development because it can change between server restarts or when namespaces are added or removed. It is more reliable to use the namespace URI string.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also