Skip to content

Reference

OpcNamespace Members

Represents a nominal space used to categorize information like nodes, types, identifiers, etc. under a logical topic.

Reference

OpcNamespace Members ​

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

Fields ​

UriHost ​

static

Specifies that an Uri is a pointer to a OPC UA namespace without a specific namespace Host.

csharp
public static readonly string UriHost
vbnet
Public Shared ReadOnly UriHost As String

Field value

String

UriScheme ​

static

Specifies that an Uri is a pointer to a OPC UA namespace without a specific namespace Scheme.

csharp
public static readonly string UriScheme
vbnet
Public Shared ReadOnly UriScheme As String

Field value

String

Properties ​

Default ​

static

Gets the default namespace used in cases there the concrete does not matter or is just unknown.

csharp
public static OpcNamespace Default { get; }
vbnet
Public Shared ReadOnly Property [Default] As OpcNamespace

Property value

OpcNamespace

An instance of the OpcNamespace class its IsDefault property always returns the value true. While its Index property is equals to zero, its Uri and Value properties always return a null reference (Nothing in Visual Basic).

Index ​

Gets the index of the namespace within all namespaces of a server.

csharp
public int Index { get; }
vbnet
Public ReadOnly Property Index As Integer

Property value

Int32

The index value which refers to the namespace in the namespace array of the server this OpcNamespace represents.

Remarks

The available namespaces of a server can be retrieved through reading the value of the namespaces-node using the node identifier 'OpcObjectTypes.Server.Namespaces'.

IsAbsolute ​

Gets a value indicating whether the namespace is absolute.

csharp
public bool IsAbsolute { get; }
vbnet
Public ReadOnly Property IsAbsolute As Boolean

Property value

Boolean

The value true if an Uri or Value is given; otherwise the value false.

IsDefault ​

Gets a value indicating whether the namespace defines the default namespace without to refer to a specific address space.

csharp
public bool IsDefault { get; }
vbnet
Public ReadOnly Property IsDefault As Boolean

Property value

Boolean

The value true if the namespace points to the generic address space; otherwise the value false if the namespace points to a foundation or user defined address space.

IsResolved ​

Gets a value indicating whether the namespace is resolved regarding its Index, Uri and Value.

csharp
public bool IsResolved { get; }
vbnet
Public ReadOnly Property IsResolved As Boolean

Property value

Boolean

The value true if Index is not equals zero and Uri and Value are not a null reference (Nothing in Visual Basic).

Remarks

In case there this property provides the value true any call to Resolve will have no effect to the Index nor to the Uri and Value properties.

Scope ​

since v2.12

Gets scope within the current OpcNamespace has been declared and its metadata applies to.

csharp
public OpcNamespaceScope Scope { get; }
vbnet
Public ReadOnly Property Scope As OpcNamespaceScope

Property value

OpcNamespaceScope

One of the members defined by the OpcNamespaceScope enumeration.

Uri ​

Gets the uniform resource identifier (URI) of the namespace represented and referred to by the Index.

csharp
public Uri Uri { get; }
vbnet
Public ReadOnly Property Uri As Uri

Property value

Uri

The Uri to that the OpcNamespace refers using the Index.

Value ​

since v2.8

Gets the intrinsic value of the namespace represented and referred to by the Index.

csharp
public string Value { get; }
vbnet
Public ReadOnly Property Value As String

Property value

String

The string to that the OpcNamespace refers using the Index.

Methods ​

Clear ​

static

Empties the known namespaces.

csharp
public static void Clear()
vbnet
Public Shared Sub Clear()

Remarks

All namespaces retrieved until Clear is called are no longer referenced by the global / static namespace cache. Any so far retrieved namespaces are kept resolved / existing / valid and kept unchanged by subsequent global namespace operations, because they are not longer tracked nor updated by further global namespace retrieval nor resolve operations.

CompareTo ​

2 overloads

OverloadDescription
CompareTo(object)Compares the current OpcNamespace with the other.
CompareTo(OpcNamespace)Compares the current OpcNamespace with another OpcNamespace.

CompareTo(object) ​

Compares the current OpcNamespace with the other.

csharp
public int CompareTo(object other)
vbnet
Public Function CompareTo(other As Object) As Integer

Parameters

NameTypeDescription
otherObjectThe OpcNamespace to compare with this OpcNamespace.

Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).

Implements

CompareTo(object)

CompareTo(OpcNamespace) ​

Compares the current OpcNamespace with another OpcNamespace.

csharp
public int CompareTo(OpcNamespace other)
vbnet
Public Function CompareTo(other As OpcNamespace) As Integer

Parameters

NameTypeDescription
otherOpcNamespaceThe OpcNamespace to compare with this OpcNamespace.

Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(T)).

Implements

CompareTo(OpcNamespace)

Create ​

static · 4 overloads

OverloadDescription
Create(Uri)staticCreates a OpcNamespace from the Uri specified.
Create(Uri, int)static · since v2.8Creates a OpcNamespace from the Uri specified.
Create(string)static · since v2.8Creates a OpcNamespace using the value specified.
Create(string, int)static · since v2.8Creates a OpcNamespace using the value and index specified.

Create(Uri) ​

static

Creates a OpcNamespace from the Uri specified. If uri provides Port information, the Port is used for the Index of the OpcNamespace created.

csharp
public static OpcNamespace Create(Uri uri)
vbnet
Public Shared Function Create(uri As Uri) As OpcNamespace

Parameters

NameTypeDescription
uriUriA Uri that contains a namespace.

Returns

OpcNamespace

An instance of the OpcNamespace class.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe uri is a null reference (Nothing in Visual Basic).
FormatExceptionThe uri is not a valid namespace.

Create(Uri, int) ​

static · since v2.8

Creates a OpcNamespace from the Uri specified. If uri provides Port information, the Port is used for the Index of the OpcNamespace created, if index not greater than zero.

csharp
public static OpcNamespace Create(Uri uri, int index)
vbnet
Public Shared Function Create(uri As Uri, index As Integer) As OpcNamespace

Parameters

NameTypeDescription
uriUriA Uri that contains a namespace.
indexInt32The positive number which identifies the namespace. A value within the range of zero to MaxValue.

Returns

OpcNamespace

An instance of the OpcNamespace class.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe uri is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionThe index is less than zero or greater than MaxValue.
FormatExceptionThe uri is not a valid namespace.

Create(string) ​

static · since v2.8

Creates a OpcNamespace using the value specified.

csharp
public static OpcNamespace Create(string value)
vbnet
Public Shared Function Create(value As String) As OpcNamespace

Parameters

NameTypeDescription
valueStringThe string value or a null reference (Nothing in Visual Basic) of the namespace to represent.

Returns

OpcNamespace

An instance of the OpcNamespace class.

Create(string, int) ​

static · since v2.8

Creates a OpcNamespace using the value and index specified.

csharp
public static OpcNamespace Create(string value, int index)
vbnet
Public Shared Function Create(value As String, index As Integer) As OpcNamespace

Parameters

NameTypeDescription
valueStringThe string value or a null reference (Nothing in Visual Basic) of the namespace to represent and referred to by the index.
indexInt32The positive number which identifies the namespace. A value within the range of zero to MaxValue.

Returns

OpcNamespace

An instance of the OpcNamespace class.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe index is less than zero or greater than MaxValue.

Equals ​

2 overloads

OverloadDescription
Equals(object)overrideDetermines whether the specified other is equal to this OpcNamespace.
Equals(OpcNamespace)Determines whether the specified other is equal to this OpcNamespace.

Equals(object) ​

override

Determines whether the specified other is equal to this OpcNamespace.

csharp
public override bool Equals(object other)
vbnet
Public Overrides Function Equals(other As Object) As Boolean

Parameters

NameTypeDescription
otherObjectThe OpcNamespace to compare to the current OpcNamespace.

Returns

Boolean

The value true if the specified OpcNamespace is equal to the current OpcNamespace; otherwise the value false.

Overrides

Equals(object)

Equals(OpcNamespace) ​

Determines whether the specified other is equal to this OpcNamespace.

csharp
public bool Equals(OpcNamespace other)
vbnet
Public Function Equals(other As OpcNamespace) As Boolean

Parameters

NameTypeDescription
otherOpcNamespaceThe OpcNamespace to compare to the current OpcNamespace.

Returns

Boolean

The value true if the specified OpcNamespace is equal to the current OpcNamespace; otherwise the value false.

Implements

Equals(OpcNamespace)

Get ​

static · 5 overloads

OverloadDescription
Get(int)staticRetrieves the OpcNamespace known under the namespaceIndex specified.
Get(int, string)staticRetrieves the OpcNamespace known under the namespaceIndex and namespaceValue specified.
Get(int, Uri)staticRetrieves the OpcNamespace known under the namespaceIndex and namespaceUri specified.
Get(string)staticRetrieves the OpcNamespace using the information provided by the namespaceUriOrValue specified.
Get(Uri)staticRetrieves the OpcNamespace with the information provided by the namespaceUri specified.

Get(int) ​

static

Retrieves the OpcNamespace known under the namespaceIndex specified.

csharp
public static OpcNamespace Get(int namespaceIndex)
vbnet
Public Shared Function [Get](namespaceIndex As Integer) As OpcNamespace

Parameters

NameTypeDescription
namespaceIndexInt32The index of the OpcNamespace to retrieve.

Returns

OpcNamespace

If namespaceIndex is equals zero the Default namespace; otherwise if there is a known namespace with the index specified the reference to the existing OpcNamespace. If there does no namespace exist under the index specified by namespaceIndex a new namespace with that index is created, added to the indexed namespaces and the reference to the new OpcNamespace is returned.

Get(int, string) ​

static

Retrieves the OpcNamespace known under the namespaceIndex and namespaceValue specified.

csharp
public static OpcNamespace Get(int namespaceIndex, string namespaceValue)
vbnet
Public Shared Function [Get](
    namespaceIndex As Integer,
    namespaceValue As String) As OpcNamespace

Parameters

NameTypeDescription
namespaceIndexInt32The index of the OpcNamespace to retrieve.
namespaceValueStringThe Uri-formatted or string-based representation of the OpcNamespace to retrieve.

Returns

OpcNamespace

If namespaceIndex is equals zero and the Port portion of the namespaceValue is zero too the Default namespace; otherwise if there is a known namespace with the index specified by namespaceIndex or (if this parameter is equals zero) a known namespace with the index defined by the Port portion of the namespaceValue the reference to the existing OpcNamespace. If there does no namespace exist under the index and value specified by namespaceIndex and namespaceValue a new namespace with that index and value is created, added to the indexed / unindexed namespaces and the reference to the new OpcNamespace is returned.

Exceptions

ExceptionCondition
ArgumentExceptionThe namespaceValue is an empty string.
ArgumentNullExceptionThe namespaceValue is a null reference (Nothing in Visual Basic).
FormatExceptionThe namespaceValue is not a valid namespace.

Get(int, Uri) ​

static

Retrieves the OpcNamespace known under the namespaceIndex and namespaceUri specified.

csharp
public static OpcNamespace Get(int namespaceIndex, Uri namespaceUri)
vbnet
Public Shared Function [Get](
    namespaceIndex As Integer,
    namespaceUri As Uri) As OpcNamespace

Parameters

NameTypeDescription
namespaceIndexInt32The index of the OpcNamespace to retrieve.
namespaceUriUriThe Uri of the OpcNamespace to retrieve.

Returns

OpcNamespace

If namespaceIndex is equals zero and the Port portion of the namespaceUri is zero too the Default namespace; otherwise if there is a known namespace with the index specified by namespaceIndex or (if this parameter is equals zero) a known namespace with the index defined by the Port portion of the namespaceUri the reference to the existing OpcNamespace. If there does no namespace exist under the index and uri specified by namespaceIndex and namespaceUri a new namespace with that index and uri is created, added to the indexed / unindexed namespaces and the reference to the new OpcNamespace is returned.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe namespaceUri is a null reference (Nothing in Visual Basic).
FormatExceptionThe namespaceUri is not a valid namespace.

Get(string) ​

static

Retrieves the OpcNamespace using the information provided by the namespaceUriOrValue specified.

csharp
public static OpcNamespace Get(string namespaceUriOrValue)
vbnet
Public Shared Function [Get](namespaceUriOrValue As String) As OpcNamespace

Parameters

NameTypeDescription
namespaceUriOrValueStringThe string-based representation or Uri-formatted string of the OpcNamespace to retrieve.

Returns

OpcNamespace

If Host portion of the namespaceUriOrValue is equals to UriHost and the Port does not refer to an indexed namespace the Default namespace; otherwise if there is a known namespace with the index specified by the Port portion the reference to the existing OpcNamespace. If there does no namespace exist under the index or namespaceUriOrValue specified a new namespace with that Uri is created, added to the indexed / unindexed namespaces and the reference to the new OpcNamespace is returned.

Exceptions

ExceptionCondition
ArgumentExceptionThe namespaceUriOrValue is an empty string.
ArgumentNullExceptionThe namespaceUriOrValue is a null reference (Nothing in Visual Basic).
FormatExceptionThe namespaceUriOrValue is not a valid namespace.

Get(Uri) ​

static

Retrieves the OpcNamespace with the information provided by the namespaceUri specified.

csharp
public static OpcNamespace Get(Uri namespaceUri)
vbnet
Public Shared Function [Get](namespaceUri As Uri) As OpcNamespace

Parameters

NameTypeDescription
namespaceUriUriThe Uri of the OpcNamespace to retrieve.

Returns

OpcNamespace

If Host portion of the namespaceUri is equals to UriHost and the Port does not refer to an indexed namespace the Default namespace; otherwise if there is a known namespace with the index specified by the Port portion the reference to the existing OpcNamespace. If there does no namespace exist under the index or namespaceUri specified a new namespace with that Uri is created, added to the indexed / unindexed namespaces and the reference to the new OpcNamespace is returned.

Exceptions

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

GetHashCode ​

override

Retrieves a hash code for this OpcNamespace.

csharp
public override int GetHashCode()
vbnet
Public Overrides Function GetHashCode() As Integer

Returns

Int32

An int that contains the hash code for the OpcNamespace.

Overrides

GetHashCode()

GetId ​

8 overloads

OverloadDescription
GetId(byte[])Retrieves a new OpcNodeId using the opaque value and this OpcNamespace.
GetId(int)Retrieves a new OpcNodeId using the numeric value and this OpcNamespace.
GetId(uint)Retrieves a new OpcNodeId using the numeric value and this OpcNamespace.
GetId(Guid)Retrieves a new OpcNodeId using the general unique identifier (= GUID) value and this OpcNamespace.
GetId(string)Retrieves a new OpcNodeId using the stringvalue and this OpcNamespace.
GetId(string, OpcNamePath)Retrieves a new OpcNodeId using the stringvalue, this OpcNamespace and the path.
GetId(string, params OpcName[])Retrieves a new OpcNodeId using the stringvalue, this OpcNamespace and the pathElements.
GetId(object)since v2.14Retrieves a new OpcNodeId using the value and this OpcNamespace.

GetId(byte[]) ​

Retrieves a new OpcNodeId using the opaque value and this OpcNamespace.

csharp
public OpcNodeId GetId(byte[] value)
vbnet
Public Function GetId(value As Byte()) As OpcNodeId

Parameters

NameTypeDescription
valueByte[]The opaque value of the identifier.

Returns

OpcNodeId

A new instance of the OpcNodeId using the value as the identifier value and this OpcNamespace as the Namespace.

GetId(int) ​

Retrieves a new OpcNodeId using the numeric value and this OpcNamespace.

csharp
public OpcNodeId GetId(int value)
vbnet
Public Function GetId(value As Integer) As OpcNodeId

Parameters

NameTypeDescription
valueInt32The numeric value of the identifier.

Returns

OpcNodeId

A new instance of the OpcNodeId using the value as the identifier value and this OpcNamespace as the Namespace.

GetId(uint) ​

Retrieves a new OpcNodeId using the numeric value and this OpcNamespace.

csharp
public OpcNodeId GetId(uint value)
vbnet
Public Function GetId(value As UInteger) As OpcNodeId

Parameters

NameTypeDescription
valueUInt32The numeric value of the identifier.

Returns

OpcNodeId

A new instance of the OpcNodeId using the value as the identifier value and this OpcNamespace as the Namespace.

GetId(Guid) ​

Retrieves a new OpcNodeId using the general unique identifier (= GUID) value and this OpcNamespace.

csharp
public OpcNodeId GetId(Guid value)
vbnet
Public Function GetId(value As Guid) As OpcNodeId

Parameters

NameTypeDescription
valueGuidThe general unique identifier (= GUID) value of the identifier.

Returns

OpcNodeId

A new instance of the OpcNodeId using the value as the identifier value and this OpcNamespace as the Namespace.

GetId(string) ​

Retrieves a new OpcNodeId using the stringvalue and this OpcNamespace.

csharp
public OpcNodeId GetId(string value)
vbnet
Public Function GetId(value As String) As OpcNodeId

Parameters

NameTypeDescription
valueStringThe string value of the identifier.

Returns

OpcNodeId

A new instance of the OpcNodeId using the value as the identifier value and this OpcNamespace as the Namespace.

GetId(string, OpcNamePath) ​

Retrieves a new OpcNodeId using the stringvalue, this OpcNamespace and the path.

csharp
public OpcNodeId GetId(string value, OpcNamePath path)
vbnet
Public Function GetId(value As String, path As OpcNamePath) As OpcNodeId

Parameters

NameTypeDescription
valueStringThe string value of the identifier.
pathOpcNamePathThe logical (= physically not available in the address space) portion of the identifier.

Returns

OpcNodeId

A new instance of the OpcNodeId using the value as the identifier value, this OpcNamespace as the Namespace and the path specified for the Path.

GetId(string, params OpcName[]) ​

Retrieves a new OpcNodeId using the stringvalue, this OpcNamespace and the pathElements.

csharp
public OpcNodeId GetId(string value, params OpcName[] pathElements)
vbnet
Public Function GetId(
    value As String,
    ParamArray pathElements As OpcName()) As OpcNodeId

Parameters

NameTypeDescription
valueStringThe string value of the identifier.
pathElementsparams OpcName[]The elements of the OpcNamePath to use as the logical (= physically not available in the address space) portion of the identifier.

Returns

OpcNodeId

A new instance of the OpcNodeId using the value as the identifier value, this OpcNamespace as the Namespace and the pathElements for the Path.

GetId(object) ​

since v2.14

Retrieves a new OpcNodeId using the value and this OpcNamespace.

csharp
public OpcNodeId GetId(object value)
vbnet
Public Function GetId(value As Object) As OpcNodeId

Parameters

NameTypeDescription
valueObjectThe value of the identifier.

Returns

OpcNodeId

A new instance of the OpcNodeId using the value as the identifier value and this OpcNamespace as the Namespace.

Exceptions

ExceptionCondition
ArgumentExceptionThe type of value is not supported.

GetName ​

Retrieves a new OpcName using the name and this OpcNamespace.

csharp
public OpcName GetName(string name)
vbnet
Public Function GetName(name As String) As OpcName

Parameters

NameTypeDescription
nameStringThe value of the OpcName to create.

Returns

OpcName

A new instance of the OpcName using the name as the Value and this OpcNamespace as the Namespace.

GetNextId ​

since v2.29

Retrieves a new OpcNodeId using the next available numeric identifier within this OpcNamespace.

csharp
public OpcNodeId GetNextId()
vbnet
Public Function GetNextId() As OpcNodeId

Returns

OpcNodeId

A new instance of the OpcNodeId using the next available numeric identifier within this OpcNamespace as the Namespace.

Parse ​

static

Converts a namespace string to a OpcNamespace instance.

csharp
public static OpcNamespace Parse(string value)
vbnet
Public Shared Function Parse(value As String) As OpcNamespace

Parameters

NameTypeDescription
valueStringA string that contains a namespace.

Returns

OpcNamespace

An instance of the OpcNamespace class.

Exceptions

ExceptionCondition
FormatExceptionThe value is not a valid namespace.

Resolve ​

Resolves missing OPC UA namespace information using the object specified by resolver.

csharp
public void Resolve(IOpcNamespaceResolver resolver)
vbnet
Public Sub Resolve(resolver As IOpcNamespaceResolver)

Parameters

NameTypeDescription
resolverIOpcNamespaceResolverAn instance implementing the IOpcNamespaceResolver interface to use to retrieve additional namespace information so far missed by the OpcNamespace.

Exceptions

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

Remarks

Only missing information is resolved using the resolver specified. A once resolved Index or Value is not discarded or re-resolved by subsequent calls of this method (see IsResolved).

ToString ​

override

Returns a string representing the namespace.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

The Value and Index (if non-zero) formatted as string.

Overrides

ToString()

TryCreate ​

static · 2 overloads

OverloadDescription
TryCreate(Uri, out OpcNamespace)staticDetermines whether a Uri is a valid namespace.
TryCreate(Uri, int, out OpcNamespace)static · since v2.8Determines whether a Uri is a valid namespace.

TryCreate(Uri, out OpcNamespace) ​

static

Determines whether a Uri is a valid namespace.

csharp
public static bool TryCreate(Uri uri, out OpcNamespace nodeNamespace)
vbnet
Public Shared Function TryCreate(
    uri As Uri,
    nodeNamespace As OpcNamespace) As Boolean

Parameters

NameTypeDescription
uriUriThe Uri to validate.
nodeNamespaceout OpcNamespaceThe OpcNamespace version of the uri.

Returns

Boolean

The value true, if the uri is a valid namespace; otherwise the value false.

TryCreate(Uri, int, out OpcNamespace) ​

static · since v2.8

Determines whether a Uri is a valid namespace.

csharp
public static bool TryCreate(Uri uri, int index, out OpcNamespace nodeNamespace)
vbnet
Public Shared Function TryCreate(
    uri As Uri,
    index As Integer,
    nodeNamespace As OpcNamespace) As Boolean

Parameters

NameTypeDescription
uriUriThe Uri to validate.
indexInt32The index which applies to the uri of the namespace to validate.
nodeNamespaceout OpcNamespaceThe OpcNamespace version of the uri with the index specified.

Returns

Boolean

The value true; if the uri is a valid namespace; otherwise the value false.

Remarks

The index is only used if it is greater than zero; otherwise the Port of the uri is used instead.

TryParse ​

static

Determines whether a string is a valid namespace.

csharp
public static bool TryParse(string value, out OpcNamespace nodeNamespace)
vbnet
Public Shared Function TryParse(
    value As String,
    nodeNamespace As OpcNamespace) As Boolean

Parameters

NameTypeDescription
valueStringThe string to validate.
nodeNamespaceout OpcNamespaceThe OpcNamespace version of the string.

Returns

Boolean

The value true, if value is a valid namespace; otherwise the value false.

Operators ​

Equality ​

static

Returns a value indicating whether two instance of OpcNamespace are equal.

csharp
public static bool operator ==(OpcNamespace left, OpcNamespace right)
vbnet
Public Shared Operator =(left As OpcNamespace, right As OpcNamespace) As Boolean

Parameters

NameTypeDescription
leftOpcNamespaceThe first OpcNamespace to compare.
rightOpcNamespaceThe second OpcNamespace to compare.

Returns

Boolean

The value true if left and right are equal; otherwise the value false.

GreaterThan ​

static

Determines whether the first specified OpcNamespace object is greater than the second specified OpcNamespace object.

csharp
public static bool operator >(OpcNamespace left, OpcNamespace right)
vbnet
Public Shared Operator >(left As OpcNamespace, right As OpcNamespace) As Boolean

Parameters

NameTypeDescription
leftOpcNamespaceThe first OpcNamespace object.
rightOpcNamespaceThe second OpcNamespace object.

Returns

Boolean

The value true if left is greater than right; otherwise, false.

GreaterThanOrEqual ​

static

Determines whether the first specified OpcNamespace object is greater than or equal to the second specified OpcNamespace object.

csharp
public static bool operator >=(OpcNamespace left, OpcNamespace right)
vbnet
Public Shared Operator >=(
    left As OpcNamespace,
    right As OpcNamespace) As Boolean

Parameters

NameTypeDescription
leftOpcNamespaceThe first OpcNamespace object.
rightOpcNamespaceThe second OpcNamespace object.

Returns

Boolean

The value true if left is greater than or equal to right; otherwise, false.

Implicit ​

static · 2 overloads

OverloadDescription
implicit operator OpcNamespace(string)staticConverts a string to an OpcNamespace object.
implicit operator OpcNamespace(int)staticConverts a int to an OpcNamespace object.

implicit operator OpcNamespace(string) ​

static

Converts a string to an OpcNamespace object.

csharp
public static implicit operator OpcNamespace(string value)
vbnet
Public Shared Widening Operator CType(value As String) As OpcNamespace

Parameters

NameTypeDescription
valueStringA string that represents the namespace.

Returns

OpcNamespace

An instance of the OpcNamespace class initialized from the value.

implicit operator OpcNamespace(int) ​

static

Converts a int to an OpcNamespace object.

csharp
public static implicit operator OpcNamespace(int value)
vbnet
Public Shared Widening Operator CType(value As Integer) As OpcNamespace

Parameters

NameTypeDescription
valueInt32A int that represents the namespace.

Returns

OpcNamespace

An instance of the OpcNamespace class initialized from the value.

Inequality ​

static

Returns a value indicating whether two instances of OpcNamespace are not equal.

csharp
public static bool operator !=(OpcNamespace left, OpcNamespace right)
vbnet
Public Shared Operator <>(
    left As OpcNamespace,
    right As OpcNamespace) As Boolean

Parameters

NameTypeDescription
leftOpcNamespaceThe first OpcNamespace to compare.
rightOpcNamespaceThe second OpcNamespace to compare.

Returns

Boolean

The value true if left and right are not equal; otherwise the value false.

LessThan ​

static

Determines whether the first specified OpcNamespace object is less than the second specified OpcNamespace object.

csharp
public static bool operator <(OpcNamespace left, OpcNamespace right)
vbnet
Public Shared Operator <(left As OpcNamespace, right As OpcNamespace) As Boolean

Parameters

NameTypeDescription
leftOpcNamespaceThe first OpcNamespace object.
rightOpcNamespaceThe second OpcNamespace object.

Returns

Boolean

The value true if left is less than right; otherwise the value false.

Exceptions

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

LessThanOrEqual ​

static

Determines whether the first specified OpcNamespace object is less than or equal to the second OpcNamespace object.

csharp
public static bool operator <=(OpcNamespace left, OpcNamespace right)
vbnet
Public Shared Operator <=(
    left As OpcNamespace,
    right As OpcNamespace) As Boolean

Parameters

NameTypeDescription
leftOpcNamespaceThe first OpcNamespace object.
rightOpcNamespaceThe second OpcNamespace object.

Returns

Boolean

The value true if left is less than or equal to right; otherwise the value false.

Exceptions

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