Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcName type exposes the following members.
Initializes a new instance of the OpcName class using the value
and namespaceIndex
specified.
C#
public OpcName(string value, int namespaceIndex)
Parameters
value
String
The String value of the name to represent. A null reference (Nothing in Visual Basic) or a value equals Empty results into a null name (see IsNull).
namespaceIndex
Int32
The index of the namespace that this name should refer to.
Initializes a new instance of the OpcName class using the value
and nameNamespace
specified.
C#
public OpcName(string value, OpcNamespace nameNamespace)
Parameters
value
String
The String value of the name to represent. A null reference (Nothing in Visual Basic) or a value equals Empty results into a null name (see IsNull).
nameNamespace
OpcNamespace
The namespace that this name should refer to.
Gets the OpcNamespace used by the OpcName to describe the namespace to that the name belongs.
C#
public OpcNamespace Namespace { get; }
Property Value
An instance of the OpcNamespace with the known information about the namespace to that the OpcName belongs.
Gets the index of the namespace that this name belongs.
C#
public int NamespaceIndex { get; }
Property Value
The index value which refers to the namespace in the namespace array of the server to that the name belong.
Remarks
The available namespaces of the server can be retrieved through reading the value of the namespaces-node using the node identifier 'OpcObjectTypes.Server.Namespaces'.
Gets the uniform resource identifier (URI) of the namespace referred by the NamespaceIndex.
C#
public Uri NamespaceUri { get; }
Property Value
The Uri to that the OpcName refers using the NamespaceIndex.
Gets the name without any namespace information.
C#
public string Value { get; }
Property Value
The (unqualified) value of the name.
Indicates whether the specified OpcName is null or its Value is null or an empty string (“”).
C#
public static bool IsNullOrEmpty(OpcName name)
Parameters
name
OpcName
The OpcName to test.
Returns
The value true if the name
parameter or its Value is null or an empty string (“”); otherwise the value false.
Remarks
This method ignores the circumstance whether the Namespace of the name
might be specified anyway.
Returns a value indicating whether two instance of OpcName are equal.
C#
public static bool operator ==(OpcName left, OpcName right)
Converts a OpcName to an QualifiedName object.
C#
[CLSCompliant(false)] public static explicit operator QualifiedName(OpcName value)
Converts a QualifiedName to an OpcName object.
C#
[CLSCompliant(false)] public static implicit operator OpcName(QualifiedName value)
Returns a value indicating whether two instances of OpcName are not equal.
C#
public static bool operator !=(OpcName left, OpcName right)