OPC Studio User's Guide and Reference
IsValidNamespaceIndex Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAUtilities Class : IsValidNamespaceIndex Method
The namespace index to be tested.
Determines whether a given namespace index is valid in OPC Unified Architecture.
Syntax
'Declaration
 
<PureAttribute()>
Public Shared Function IsValidNamespaceIndex( _
   ByVal namespaceIndex As Integer _
) As Boolean
'Usage
 
Dim namespaceIndex As Integer
Dim value As Boolean
 
value = UAUtilities.IsValidNamespaceIndex(namespaceIndex)
[Pure()]
public static bool IsValidNamespaceIndex( 
   int namespaceIndex
)
[Pure()]
public:
static bool IsValidNamespaceIndex( 
   int namespaceIndex
) 

Parameters

namespaceIndex
The namespace index to be tested.

Return Value

true if namespaceIndex is a valid namespace index; false otherwise.
Remarks

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