Skip to content

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 ​

csharp
public class OpcNamespace
vbnet
Public Class OpcNamespace

Inheritance ​

Object → OpcNamespace

Implements ​

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 ​

NameDescription
UriHoststaticSpecifies that an Uri is a pointer to a OPC UA namespace without a specific namespace Host.
UriSchemestaticSpecifies that an Uri is a pointer to a OPC UA namespace without a specific namespace Scheme.

Properties ​

NameDescription
DefaultstaticGets the default namespace used in cases there the concrete does not matter or is just unknown.
IndexGets the index of the namespace within all namespaces of a server.
IsAbsoluteGets a value indicating whether the namespace is absolute.
IsDefaultGets a value indicating whether the namespace defines the default namespace without to refer to a specific address space.
IsResolvedGets a value indicating whether the namespace is resolved regarding its Index, Uri and Value.
Scopesince v2.12Gets scope within the current OpcNamespace has been declared and its metadata applies to.
UriGets the uniform resource identifier (URI) of the namespace represented and referred to by the Index.
Valuesince v2.8Gets the intrinsic value of the namespace represented and referred to by the Index.

Methods ​

NameDescription
ClearstaticEmpties the known namespaces.
CompareTo2 overloadsCompares the current OpcNamespace with the other.
Createstatic · 4 overloadsCreates a OpcNamespace from the Uri specified.
Equals2 overloadsDetermines whether the specified other is equal to this OpcNamespace.
Getstatic · 5 overloadsRetrieves the OpcNamespace known under the namespaceIndex specified.
GetHashCodeoverrideRetrieves a hash code for this OpcNamespace.
GetId8 overloadsRetrieves a new OpcNodeId using the opaque value and this OpcNamespace.
GetNameRetrieves a new OpcName using the name and this OpcNamespace.
GetNextIdsince v2.29Retrieves a new OpcNodeId using the next available numeric identifier within this OpcNamespace.
ParsestaticConverts a namespace string to a OpcNamespace instance.
ResolveResolves missing OPC UA namespace information using the object specified by resolver.
ToStringoverrideReturns a string representing the namespace.
TryCreatestatic · 2 overloadsDetermines whether a Uri is a valid namespace.
TryParsestaticDetermines whether a string is a valid namespace.

Operators ​

NameDescription
EqualitystaticReturns a value indicating whether two instance of OpcNamespace are equal.
GreaterThanstaticDetermines whether the first specified OpcNamespace object is greater than the second specified OpcNamespace object.
GreaterThanOrEqualstaticDetermines whether the first specified OpcNamespace object is greater than or equal to the second specified OpcNamespace object.
Implicitstatic · 2 overloadsConverts a string to an OpcNamespace object.
InequalitystaticReturns a value indicating whether two instances of OpcNamespace are not equal.
LessThanstaticDetermines whether the first specified OpcNamespace object is less than the second specified OpcNamespace object.
LessThanOrEqualstaticDetermines whether the first specified OpcNamespace object is less than or equal to the second OpcNamespace object.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59