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
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opc |
| Opc | Initializes a new instance of the Opclist. |
OpcNamespaceCollection()
Initializes a new instance of the OpcNamespaceCollection class.
public OpcNamespaceCollection()Public Sub New()OpcNamespaceCollection(IList<OpcNamespace>)
Initializes a new instance of the OpcNamespaceCollection class as a wrapper for the specified list.
public OpcNamespaceCollection(IList<OpcNamespace> list)Public Sub New(list As IList(Of OpcNamespace))Parameters
| Name | Type | Description |
|---|---|---|
list | IList<OpcNamespace> | The IList< |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The list is a null reference ( |
Methods
ClearItems
Removes all elements from the collection.
protected override void ClearItems()Protected Overrides Sub ClearItems()Overrides
Dispose
| Overload | Description |
|---|---|
| Dispose() | Releases all resources used by the Opc |
| Dispose( | Releases the unmanaged resources used by the Opc |
Dispose()
Releases all resources used by the OpcNamespaceCollection.
public void Dispose()Public Sub Dispose()Implements
Dispose(bool)
Releases the unmanaged resources used by the OpcNamespaceCollection and optionally releases the managed resources.
protected virtual void Dispose(bool disposing)Protected Overridable Sub Dispose(disposing As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
disposing | Boolean | The value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources. |
InsertItem
Inserts the item into the collection at the index specified.
protected override void InsertItem(int index, OpcNamespace item)Protected Overrides Sub InsertItem(index As Integer, item As OpcNamespace)Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index at which the item is to be inserted. |
item | OpcNamespace | The OpcNamespace to insert. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The index is less than zero or greater than the number of elements in the collection. |
Overrides
RemoveItem
Removes the element at the index specified from the collection.
protected override void RemoveItem(int index)Protected Overrides Sub RemoveItem(index As Integer)Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index of the element to remove. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The index is less than zero or equal to or greater than the number of elements in the collection. |
Overrides
Resolve
Resolves another namespace using the information in the source specified.
public OpcNamespace Resolve(OpcNamespace source)Public Function Resolve(source As OpcNamespace) As OpcNamespaceParameters
| Name | Type | Description |
|---|---|---|
source | OpcNamespace | The OpcNamespace its Index ( |
Returns
The OpcNamespace instance known using the index or value of the source specified; otherwise a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| Argument | The source is a null reference ( |
Implements
ResolveIndex
Resolves the unique identifier of the namespace specified by the namespaceValue.
public int ResolveIndex(string namespaceValue)Public Function ResolveIndex(namespaceValue As String) As IntegerParameters
| Name | Type | Description |
|---|---|---|
namespaceValue | String | The string representation of the namespace its unique numeric identifier is to be resolved. |
Returns
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
ResolveValue
Resolves the string-based representation of the namespace which can be identified using the namespaceIndex specified.
public string ResolveValue(int namespaceIndex)Public Function ResolveValue(namespaceIndex As Integer) As StringParameters
| Name | Type | Description |
|---|---|---|
namespaceIndex | Int32 | The numeric unique identifier of the namespace its string-based representation is to be resolved. |
Returns
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
SetItem
Replaces the element at the index specified with the item.
protected override void SetItem(int index, OpcNamespace item)Protected Overrides Sub SetItem(index As Integer, item As OpcNamespace)Parameters
| Name | Type | Description |
|---|---|---|
index | Int32 | The zero-based index of the element to replace. |
item | OpcNamespace | The new OpcNamespace at the index. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The index is less than zero or equal to or greater than the number of elements in the collection. |
Overrides

