Skip to content

Reference

OpcClient.GetDataType Method

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

Reference

OpcClient.GetDataType 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

6 overloads · since v2.9

OverloadDescription
GetDataType(string)since v2.9Retrieves the OpcDataTypeInfo object which is known under the name specified.
GetDataType(OpcName)since v2.9Retrieves the OpcDataTypeInfo object which is known under the name specified.
GetDataType(OpcNodeId)since v2.9Retrieves the OpcDataTypeInfo object which declares the type which is identified by the typeId specified.
GetDataType(Type)since v2.9Retrieves the OpcDataTypeInfo object which declares the type implemented by the underlyingType specified.
GetDataType(OpcEncoding)since v2.9Retrieves the OpcDataTypeInfo object which declares the type which is identified by the encoding specified.
GetDataType(XmlQualifiedName)since v2.9Retrieves the OpcDataTypeInfo object which is known under the xmlName specified.

Exceptions (all overloads)

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

GetDataType(string) ​

since v2.9

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

csharp
public OpcDataTypeInfo GetDataType(string name)
vbnet
Public Function GetDataType(name As String) As OpcDataTypeInfo

Parameters

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

Returns

OpcDataTypeInfo

The OpcDataTypeInfo 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).

GetDataType(OpcName) ​

since v2.9

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

csharp
public OpcDataTypeInfo GetDataType(OpcName name)
vbnet
Public Function GetDataType(name As OpcName) As OpcDataTypeInfo

Parameters

NameTypeDescription
nameOpcNameThe OpcName of the OpcDataTypeInfo object to retrieve.

Returns

OpcDataTypeInfo

The OpcDataTypeInfo 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).

GetDataType(OpcNodeId) ​

since v2.9

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

csharp
public OpcDataTypeInfo GetDataType(OpcNodeId typeId)
vbnet
Public Function GetDataType(typeId As OpcNodeId) As OpcDataTypeInfo

Parameters

NameTypeDescription
typeIdOpcNodeIdThe OpcNodeId which identifies the OpcDataTypeInfo to retrieve.

Returns

OpcDataTypeInfo

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

Exceptions

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

GetDataType(Type) ​

since v2.9

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

csharp
public OpcDataTypeInfo GetDataType(Type underlyingType)
vbnet
Public Function GetDataType(underlyingType As Type) As OpcDataTypeInfo

Parameters

NameTypeDescription
underlyingTypeTypeThe Type which implements the OpcDataTypeInfo to retrieve.

Returns

OpcDataTypeInfo

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

Exceptions

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

GetDataType(OpcEncoding) ​

since v2.9

Retrieves the OpcDataTypeInfo object which declares the type which is identified by the encoding specified.

csharp
public OpcDataTypeInfo GetDataType(OpcEncoding encoding)
vbnet
Public Function GetDataType(encoding As OpcEncoding) As OpcDataTypeInfo

Parameters

NameTypeDescription
encodingOpcEncodingThe OpcEncoding which identifies the OpcDataTypeInfo to retrieve.

Returns

OpcDataTypeInfo

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

Exceptions

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

GetDataType(XmlQualifiedName) ​

since v2.9

Retrieves the OpcDataTypeInfo object which is known under the xmlName specified.

csharp
public OpcDataTypeInfo GetDataType(XmlQualifiedName xmlName)
vbnet
Public Function GetDataType(xmlName As XmlQualifiedName) As OpcDataTypeInfo

Parameters

NameTypeDescription
xmlNameXmlQualifiedNameThe XmlQualifiedName of the OpcDataTypeInfo object to retrieve.

Returns

OpcDataTypeInfo

The OpcDataTypeInfo object its XmlName is equals to the xmlName specified; otherwise a null reference (Nothing in Visual Basic).

Exceptions

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