Skip to content

Reference

IOpcTypeProvider Members

Provides type information used in the OPC UA address space.

Reference

IOpcTypeProvider Members ​

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

Methods ​

GetType ​

4 overloads

OverloadDescription
GetType(string)Retrieves the IOpcType object which is known under the name specified.
GetType(OpcName)Retrieves the IOpcType object which is known under the name specified.
GetType(OpcNodeId)Retrieves the IOpcType object which declares the type which is identified by the typeId specified.
GetType(Type)Retrieves the IOpcType object which declares the type implemented by the underlyingType specified.

GetType(string) ​

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

csharp
IOpcType GetType(string name)
vbnet
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) ​

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

csharp
IOpcType GetType(OpcName name)
vbnet
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) ​

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

csharp
IOpcType GetType(OpcNodeId typeId)
vbnet
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) ​

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

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

Parameters

NameTypeDescription
underlyingTypeTypeThe Type which implements the OpcDataTypeInfo 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).

GetTypes ​

Retrieves all IOpcType objects offered by the IOpcTypeProvider.

csharp
IOpcType[] GetTypes()
vbnet
Function GetTypes() As IOpcType()

Returns

IOpcType[]

An array that contains all IOpcType objects that are offered by the IOpcTypeProvider.