CVB.Net 14.0
ServerNamespaceList Class Reference

Manages the OPC/UA namespaces of the OpcUaServer. More...

Inherits IList< string >.

Public Member Functions

 ServerNamespaceList (OpcUaServer parent)
 Creates a new namespace list for the given parent OpcUaServer. More...
 
int Add (string name)
 Adds a new namespace (registers it with the server). More...
 
bool Contains (string name)
 Checks whether the given name is present in this list. More...
 
void CopyTo (string[] array, int arrayIndex)
 Copies the content of this array to the target array starting at the given arrayIndex . More...
 
IEnumerator< string > GetEnumerator ()
 Gets the enumerator to enumerate all namespaces. More...
 
int IndexOf (string name)
 Finds the index of the given namespace name . More...
 

Properties

string this[int index] [get]
 Gets the name of the namespace with the given index . More...
 
int Count [get]
 Gets the number of registered namespaces.
 

Detailed Description

Manages the OPC/UA namespaces of the OpcUaServer.

Constructor & Destructor Documentation

◆ ServerNamespaceList()

Creates a new namespace list for the given parent OpcUaServer.

Parameters
parentThe parent OpcUaServer.

Member Function Documentation

◆ Add()

int Add ( string  name)

Adds a new namespace (registers it with the server).

Parameters
nameThe name of the namespace to register.
Returns
The namespace index of the added name .

◆ Contains()

bool Contains ( string  name)

Checks whether the given name is present in this list.

Parameters
nameName to check for.
Returns
true if name is inside this list.

◆ CopyTo()

void CopyTo ( string[]  array,
int  arrayIndex 
)

Copies the content of this array to the target array starting at the given arrayIndex .

Parameters
arrayArray to copy to.
arrayIndexStarting index in the target array .

◆ GetEnumerator()

IEnumerator< string > GetEnumerator ( )

Gets the enumerator to enumerate all namespaces.

Returns
The enumerator for the namespace names.

◆ IndexOf()

int IndexOf ( string  name)

Finds the index of the given namespace name .

Parameters
nameName to find.
Returns
Index of the name ; -1 if not found.

Property Documentation

◆ this[int index]

string this[int index]
get

Gets the name of the namespace with the given index .

Parameters
indexNamespace index to get the name for.
Returns
The name of the namespace