Skip to content

Reference

OpcClient.GetNodeType Method

Retrieves the OpcNodeTypeInfo object which is known under the name specified.

Reference

OpcClient.GetNodeType Method ​

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

4 overloads · since v2.9

OverloadDescription
GetNodeType(string)since v2.9Retrieves the OpcNodeTypeInfo object which is known under the name specified.
GetNodeType(OpcName)since v2.9Retrieves the OpcNodeTypeInfo object which is known under the name specified.
GetNodeType(OpcNodeId)since v2.9Retrieves the OpcNodeTypeInfo object which declares the type which is identified by the typeId specified.
GetNodeType(Type)since v2.9Retrieves the OpcNodeTypeInfo object which declares the type implemented by the underlyingType specified.

Exceptions (all overloads)

ExceptionCondition
ObjectDisposedExceptionThe object has been disposed of.
OpcExceptionThe service execution failed upon different circumstances; for more details see exception details.

GetNodeType(string) ​

since v2.9

Retrieves the OpcNodeTypeInfo object which is known under the name specified.

csharp
public OpcNodeTypeInfo GetNodeType(string name)
vbnet
Public Function GetNodeType(name As String) As OpcNodeTypeInfo

Parameters

NameTypeDescription
nameStringThe string to use to identify the OpcNodeTypeInfo object to retrieve.

Returns

OpcNodeTypeInfo

The OpcNodeTypeInfo object its Name is equals (regarding its Value) to the name specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

ExceptionCondition
ArgumentExceptionThe name is equals Empty.
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

GetNodeType(OpcName) ​

since v2.9

Retrieves the OpcNodeTypeInfo object which is known under the name specified.

csharp
public OpcNodeTypeInfo GetNodeType(OpcName name)
vbnet
Public Function GetNodeType(name As OpcName) As OpcNodeTypeInfo

Parameters

NameTypeDescription
nameOpcNameThe OpcName of the OpcNodeTypeInfo object to retrieve.

Returns

OpcNodeTypeInfo

The OpcNodeTypeInfo object its Name is equals to the name specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

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

GetNodeType(OpcNodeId) ​

since v2.9

Retrieves the OpcNodeTypeInfo object which declares the type which is identified by the typeId specified.

csharp
public OpcNodeTypeInfo GetNodeType(OpcNodeId typeId)
vbnet
Public Function GetNodeType(typeId As OpcNodeId) As OpcNodeTypeInfo

Parameters

NameTypeDescription
typeIdOpcNodeIdThe OpcNodeId which identifies the OpcNodeTypeInfo to retrieve.

Returns

OpcNodeTypeInfo

The OpcNodeTypeInfo object which is known under the typeId specified or a null reference (Nothing in Visual Basic) if there doesn't exist a known OpcNodeTypeInfo object which is associated with the typeId specified.

Exceptions

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

GetNodeType(Type) ​

since v2.9

Retrieves the OpcNodeTypeInfo object which declares the type implemented by the underlyingType specified.

csharp
public OpcNodeTypeInfo GetNodeType(Type underlyingType)
vbnet
Public Function GetNodeType(underlyingType As Type) As OpcNodeTypeInfo

Parameters

NameTypeDescription
underlyingTypeTypeThe Type which implements the OpcNodeTypeInfo to retrieve.

Returns

OpcNodeTypeInfo

The OpcNodeTypeInfo object which declares the underlyingType specified or a null reference (Nothing in Visual Basic) if there isn't a OpcNodeTypeInfo object associated with the underlyingType specified.

Exceptions

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