Skip to content

Reference

OpcClient.GetType Method

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

Reference

OpcClient.GetType 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.19

OverloadDescription
GetType(string)since v2.19Retrieves the IOpcType object which is known under the name specified.
GetType(OpcName)since v2.19Retrieves the IOpcType object which is known under the name specified.
GetType(OpcNodeId)since v2.19Retrieves the IOpcType object which declares the type which is identified by the typeId specified.
GetType(Type)since v2.19Retrieves the IOpcType 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.

GetType(string) ​

since v2.19

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

csharp
public IOpcType GetType(string name)
vbnet
Public Function [GetType](name As String) As IOpcType

Parameters

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

Returns

IOpcType

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

GetType(OpcName) ​

since v2.19

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

csharp
public IOpcType GetType(OpcName name)
vbnet
Public Function [GetType](name As OpcName) As IOpcType

Parameters

NameTypeDescription
nameOpcNameThe OpcName of the IOpcType object to retrieve.

Returns

IOpcType

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

GetType(OpcNodeId) ​

since v2.19

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

csharp
public IOpcType GetType(OpcNodeId typeId)
vbnet
Public Function [GetType](typeId As OpcNodeId) As IOpcType

Parameters

NameTypeDescription
typeIdOpcNodeIdThe OpcNodeId which identifies the IOpcType to retrieve.

Returns

IOpcType

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

Exceptions

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

GetType(Type) ​

since v2.19

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

csharp
public IOpcType GetType(Type underlyingType)
vbnet
Public Function [GetType](underlyingType As Type) As IOpcType

Parameters

NameTypeDescription
underlyingTypeTypeThe Type which implements the IOpcType to retrieve.

Returns

IOpcType

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

Exceptions

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