Reference
OpcNamespace Class
Represents a nominal space used to categorize information like nodes, types, identifiers, etc. under a logical topic.
Reference
OpcNamespace Class
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcNamespace Members
- Also in
- Opc.UaFx.Client
Represents a nominal space used to categorize information like nodes, types, identifiers, etc. under a logical topic.
Syntax
public class OpcNamespacePublic Class OpcNamespaceInheritance
Object → OpcNamespace
Implements
- IComparable
- IComparable<OpcNamespace>
- IEquatable<OpcNamespace>
Remarks
An OPC UA server provides an array of such topics known as namespaces. Within these list of namespaces a dedicated namespace can be determined by its unique Index. Its Uri does additionally inform about the general purpose, the source or the owner of the namespace.
The Default namespace uses an Index equals zero and a null reference (Nothing in Visual Basic) as the Uri. A system or custom defined OpcNamespace instance can have either an Index unequal to zero and/or an Uri unequal to a null reference (Nothing in Visual Basic).
A OpcNamespace can be constructed from a simple Uri. In case there the Host portion uses the UriHost the whole Uri information is not used for the Uri of the OpcNamespace except the Port portion. If it is not the scheme specific default port (see IsDefaultPort) and it is greater than zero it is used as the Index of the namespace.
In case there the OpcNamespace is constructed from a Uri which uses a different Host portion than UriHost the whole Uri is used as the Uri of the namespace except of an existing Port portion. If the Port portion is greater than zero and is not the scheme specific default port (see IsDefaultPort) it is used as the Index of the namespace. If the Scheme is equals to UriScheme, the UriSchemeHttp scheme is used instead for the Uri of the namespace. Additionally any Fragment and Query component is also discarded and any trailing '/' is trimmed from Path component of the Uri.
Fields
| Name | Description |
|---|---|
| UriHost | Specifies that an Uri is a pointer to a OPC UA namespace without a specific namespace Host. |
| UriScheme | Specifies that an Uri is a pointer to a OPC UA namespace without a specific namespace Scheme. |
Properties
| Name | Description |
|---|---|
| Default | Gets the default namespace used in cases there the concrete does not matter or is just unknown. |
| Index | Gets the index of the namespace within all namespaces of a server. |
| IsAbsolute | Gets a value indicating whether the namespace is absolute. |
| IsDefault | Gets a value indicating whether the namespace defines the default namespace without to refer to a specific address space. |
| IsResolved | Gets a value indicating whether the namespace is resolved regarding its Index, Uri and Value. |
| Scope | Gets scope within the current OpcNamespace has been declared and its metadata applies to. |
| Uri | Gets the uniform resource identifier ( |
| Value | Gets the intrinsic value of the namespace represented and referred to by the Index. |
Methods
| Name | Description |
|---|---|
| Clear | Empties the known namespaces. |
| CompareTo | Compares the current OpcNamespace with the other. |
| Create | Creates a OpcNamespace from the Uri specified. |
| Equals | Determines whether the specified other is equal to this OpcNamespace. |
| Get | Retrieves the OpcNamespace known under the namespaceIndex specified. |
| GetHashCode | Retrieves a hash code for this OpcNamespace. |
| GetId | Retrieves a new OpcNodeId using the opaque value and this OpcNamespace. |
| GetName | Retrieves a new OpcName using the name and this OpcNamespace. |
| GetNextId | Retrieves a new OpcNodeId using the next available numeric identifier within this OpcNamespace. |
| Parse | Converts a namespace string to a OpcNamespace instance. |
| Resolve | Resolves missing OPC UA namespace information using the object specified by resolver. |
| ToString | Returns a string representing the namespace. |
| TryCreate | Determines whether a Uri is a valid namespace. |
| TryParse | Determines whether a string is a valid namespace. |
Operators
| Name | Description |
|---|---|
| Equality | Returns a value indicating whether two instance of OpcNamespace are equal. |
| GreaterThan | Determines whether the first specified OpcNamespace object is greater than the second specified OpcNamespace object. |
| Greater | Determines whether the first specified OpcNamespace object is greater than or equal to the second specified OpcNamespace object. |
| Implicit | Converts a string to an OpcNamespace object. |
| Inequality | Returns a value indicating whether two instances of OpcNamespace are not equal. |
| LessThan | Determines whether the first specified OpcNamespace object is less than the second specified OpcNamespace object. |
| LessThanOrEqual | Determines whether the first specified OpcNamespace object is less than or equal to the second OpcNamespace object. |
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

