Skip to content

Reference

OpcNamespaceCollection Members

Represents a collection of OpcNamespace instances.

Reference

OpcNamespaceCollection Members ​

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

Inherits members from Collection<OpcNamespace>.

Constructors ​

OpcNamespaceCollection ​

2 overloads

OverloadDescription
OpcNamespaceCollection()Initializes a new instance of the OpcNamespaceCollection class.
OpcNamespaceCollection(IList<OpcNamespace>)Initializes a new instance of the OpcNamespaceCollection class as a wrapper for the specified list.

OpcNamespaceCollection() ​

Initializes a new instance of the OpcNamespaceCollection class.

csharp
public OpcNamespaceCollection()
vbnet
Public Sub New()

OpcNamespaceCollection(IList<OpcNamespace>) ​

Initializes a new instance of the OpcNamespaceCollection class as a wrapper for the specified list.

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

Parameters

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

Exceptions

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

Methods ​

ClearItems ​

protected · override · since v2.12

Removes all elements from the collection.

csharp
protected override void ClearItems()
vbnet
Protected Overrides Sub ClearItems()

Overrides

ClearItems()

Dispose ​

2 overloads · since v2.12

OverloadDescription
Dispose()since v2.12Releases all resources used by the OpcNamespaceCollection.
Dispose(bool)protected · virtual · since v2.12Releases the unmanaged resources used by the OpcNamespaceCollection and optionally releases the managed resources.

Dispose() ​

since v2.12

Releases all resources used by the OpcNamespaceCollection.

csharp
public void Dispose()
vbnet
Public Sub Dispose()

Implements

Dispose()

Dispose(bool) ​

protected · virtual · since v2.12

Releases the unmanaged resources used by the OpcNamespaceCollection and optionally releases the managed resources.

csharp
protected virtual void Dispose(bool disposing)
vbnet
Protected Overridable Sub Dispose(disposing As Boolean)

Parameters

NameTypeDescription
disposingBooleanThe value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources.

InsertItem ​

protected · override · since v2.12

Inserts the item into the collection at the index specified.

csharp
protected override void InsertItem(int index, OpcNamespace item)
vbnet
Protected Overrides Sub InsertItem(index As Integer, item As OpcNamespace)

Parameters

NameTypeDescription
indexInt32The zero-based index at which the item is to be inserted.
itemOpcNamespaceThe OpcNamespace to insert.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe index is less than zero or greater than the number of elements in the collection.

Overrides

InsertItem(int, OpcNamespace)

RemoveItem ​

protected · override · since v2.12

Removes the element at the index specified from the collection.

csharp
protected override void RemoveItem(int index)
vbnet
Protected Overrides Sub RemoveItem(index As Integer)

Parameters

NameTypeDescription
indexInt32The zero-based index of the element to remove.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe index is less than zero or equal to or greater than the number of elements in the collection.

Overrides

RemoveItem(int)

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

SetItem ​

protected · override · since v2.12

Replaces the element at the index specified with the item.

csharp
protected override void SetItem(int index, OpcNamespace item)
vbnet
Protected Overrides Sub SetItem(index As Integer, item As OpcNamespace)

Parameters

NameTypeDescription
indexInt32The zero-based index of the element to replace.
itemOpcNamespaceThe new OpcNamespace at the index.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe index is less than zero or equal to or greater than the number of elements in the collection.

Overrides

SetItem(int, OpcNamespace)