Skip to content

Reference

OpcReadOnlyNamespaceCollection Members

Provides a read-only collection of OpcNamespace instances.

Reference

OpcReadOnlyNamespaceCollection Members ​

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

Inherits members from ReadOnlyCollection<OpcNamespace>.

Constructors ​

OpcReadOnlyNamespaceCollection ​

Initializes a new instance of the OpcReadOnlyNamespaceCollection class that is a read-only wrapper around the specified list.

csharp
public OpcReadOnlyNamespaceCollection(IList<OpcNamespace> list)
vbnet
Public Sub New(list As IList(Of OpcNamespace))

Parameters

NameTypeDescription
listIList<OpcNamespace>The IList<T> of OpcNamespace instances to wrap.

Exceptions

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

Methods ​

Resolve ​

since v2.12

Resolves another namespace using the information in the source specified.

csharp
public OpcNamespace Resolve(OpcNamespace source)
vbnet
Public Function Resolve(source As OpcNamespace) As OpcNamespace

Parameters

NameTypeDescription
sourceOpcNamespaceThe OpcNamespace its Index (if specified) or its Value (if specified) is used to determine the according namespace known.

Returns

OpcNamespace

The OpcNamespace instance known using the index or value of the source specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

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

Implements

Resolve

ResolveIndex ​

since v2.12

Resolves the unique identifier of the namespace specified by the namespaceValue.

csharp
public int ResolveIndex(string namespaceValue)
vbnet
Public Function ResolveIndex(namespaceValue As String) As Integer

Parameters

NameTypeDescription
namespaceValueStringThe string representation of the namespace its unique numeric identifier is to be resolved.

Returns

Int32

The unique numeric identifier of the namespace which could be looked up using the namespaceValue specified; otherwise -1 if there is no known namespace which matches the namespaceValue specified.

Implements

ResolveIndex

ResolveValue ​

since v2.12

Resolves the string-based representation of the namespace which can be identified using the namespaceIndex specified.

csharp
public string ResolveValue(int namespaceIndex)
vbnet
Public Function ResolveValue(namespaceIndex As Integer) As String

Parameters

NameTypeDescription
namespaceIndexInt32The numeric unique identifier of the namespace its string-based representation is to be resolved.

Returns

String

The string-based representation of the namespace which could be looked up using the namespaceIndex specified; otherwise a null reference (Nothing in Visual Basic).

Implements

ResolveValue