Skip to content

Reference

OpcData Class

Defines an abstract base class of data objects used and provided in the ecosystem of a specific OPC UA Server.

Reference

OpcData Class ​

abstract · since v2.8

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

Defines an abstract base class of data objects used and provided in the ecosystem of a specific OPC UA Server.

Syntax ​

csharp
[OpcDataType(22)]
public abstract class OpcData
vbnet
<OpcDataType(22)>
Public MustInherit Class OpcData

Inheritance ​

Object → OpcData

Derived types ​

Constructors ​

NameDescription
OpcDataprotected · 2 overloadsInitializes a new instance of the OpcData class.

Properties ​

NameDescription
DataStoreprotectedGets the IOpcDataStore which contains the data of this OpcData instance.

Methods ​

NameDescription
Decodestatic · 3 overloadsConverts the buffer specified to the T defined.
DeepCopyprotected · virtualCreates a copy of the current OpcData, which the SDK uses whenever it copies an encodable value of it.
Encodestatic · 2 overloads · since v2.58Encodes the value specified using its Binary encoding.
GetDataStoreprotected · virtual · since v2.32Retrieves the IOpcDataStore which contains the data of this OpcData instance.
GetTypestaticRetrieves the Type which implementes the data type which is identified by the typeId specified.
GetTypeInfostatic · 4 overloadsRetrieves the OpcDataTypeInfo which declares the data type implemented by the T specified.
NewstaticCreates a new instance of the OpcDataObject class using the dataType specified.
NewArraystaticCreates a one-dimensional array of OpcDataObject objects using the dataType and length with zero-based indexing.
RegisterTypestatic · 6 overloadsRegisters the type defined by T as the data object type to create in case there a data instance is to be created for the type definition identified by the OpcDataTypeAttribute defined on the T specified.
RegisterTypeMapperstatic · 2 overloads · since v2.27Registers the T implementing the IOpcDataTypeMapper interface as a custom mapper for data types.
RegisterTypesstatic · 3 overloadsRegisters all non-abstract types in the assembly specified which defines the OpcDataTypeAttribute.
ShallowCopyprotected · virtualCreates a shallow copy of the current OpcData.
ToExtensionstatic · since v2.40Wraps the instance into an ExtensionObject, so that it can be encoded as the instance of its data type.
TryGetTypeMapperstatic · 3 overloads · since v2.27Determines the IOpcDataTypeMapper associated with the type specified by TSource.
UnregisterTypestatic · 3 overloadsUnregisters the previously registered (see RegisterType) type defined by T as the object type to not longer create for the type definition identified by the OpcDataTypeAttribute defined on the T specified.
UnregisterTypeMapperstatic · 2 overloads · since v2.27Unregisters the T implementing the IOpcDataTypeMapper interface as a custom mapper for data types.
UnregisterTypesstatic · 3 overloadsUnregisters all previously registered types (see RegisterTypes) in the assembly specified.

Events ​

NameDescription
TypeResolvestaticOccurs when the resolution of a data type fails.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.8–v2.59