OpcData Class

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll

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

C#

[OpcDataType(22)]
public abstract class OpcData


Inheritance Object › OpcData


Derived


Attributes OpcDataTypeAttribute

Name Description
OpcData Initializes a new instance of the OpcData class.
OpcData(IOpcDataStore) Initializes a new instance of the OpcData class using the dataStore specified.
Name Description
TypeResolve Occurs when the resolution of a data type fails. Use this event to manually provide the Type to use for a specific data type definition identifier.
Name Description
DataStore Gets the IOpcDataStore which contains the data of this OpcData instance.
Name Description
Decode``1(OpcContext, Byte) Converts the buffer specified to the T defined.
Decode``1(OpcContext, Stream) Converts the data in the stream specified to the T defined.
DeepCopy
GetDataStore
GetType(OpcNodeId) Retrieves the Type which implementes the data type which is identified by the typeId specified.
GetTypeInfo(OpcEncoding) Retrieves the OpcDataTypeInfo which declares the data type which is identified by the encoding specified.
GetTypeInfo(OpcNodeId) Retrieves the OpcDataTypeInfo which declares the data type which is identified by the typeId specified.
GetTypeInfo(Type) Retrieves the OpcDataTypeInfo which declares the data type implemented by the underlyingType specified.
GetTypeInfo``1 Retrieves the OpcDataTypeInfo which declares the data type implemented by the T specified.
New(OpcDataTypeInfo) Creates a new instance of the OpcDataObject class using the dataType specified.
NewArray(OpcDataTypeInfo, Int32) Creates a one-dimensional array of OpcDataObject objects using the dataType and length with zero-based indexing.
RegisterType(Type) Registers the dataType specified 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 dataType specified.
RegisterType(Type, OpcNodeId) Registers the dataType specified as the data object type to create in case there a data instance is to be created for the type definition identified by the dataTypeId specified.
RegisterType(Type, OpcNodeId, OpcEncoding) Registers the dataType specified as the data object type to create in case there a data instance is to be created for the type definition identified by the dataTypeId or by one of the dataTypeEncodings specified.
RegisterType``1 Registers 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.
RegisterType``1(OpcNodeId) Registers 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 dataTypeId specified.
RegisterType``1(OpcNodeId, OpcEncoding) Registers 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 dataTypeId or by one of the dataTypeEncodings specified.
RegisterTypeMapper(IOpcDataTypeMapper) Registers the mapper as a custom mapper for data types.
RegisterTypeMapper``1 Registers the T implementing the IOpcDataTypeMapper interface as a custom mapper for data types.
RegisterTypes(Assembly) Registers all non-abstract types in the assembly specified which defines the OpcDataTypeAttribute.
RegisterTypes(IEnumerable) Registers the dataTypes specified as the data object type to create in case there a data instance is to be created for the type definitions identified by the OpcEventTypeAttribute used on one of the dataTypes specified.
RegisterTypes(Type, Type) Registers the dataType and the further specified dataTypes 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 used on the dataType or on one of the dataTypes specified.
ShallowCopy
ToExtension(Object)
TryGetTypeMapper(Type, IOpcDataTypeMapper@) Determines the IOpcDataTypeMapper associated with the type specified by sourceType.
TryGetTypeMapper(Type, IOpcDataTypeMapper@, Type@) Determines the IOpcDataTypeMapper associated with the type specified by sourceType and the resulting targetType.
TryGetTypeMapper``1(IOpcDataTypeMapper@) Determines the IOpcDataTypeMapper associated with the type specified by TSource.
UnregisterType``1 Unregisters the previously registered (see RegisterType´´1) 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.
UnregisterType``1(OpcNodeId) Unregisters the previously registered (see RegisterType´´1(OpcNodeId)) type defined by T as the Object type to not longer create for the type definition identified by the dataTypeId specified.
UnregisterType``1(OpcNodeId, OpcEncoding) Unregisters the previously registered (see RegisterType´´1(OpcNodeId, OpcEncoding)) type defined by T as the Object type to not longer create for the type definition identified by the dataTypeId or by one of the dataTypeEncodings specified.
UnregisterTypeMapper(IOpcDataTypeMapper) Unregisters the mapper as a custom mapper for data types.
UnregisterTypeMapper``1 Unregisters the T implementing the IOpcDataTypeMapper interface as a custom mapper for data types.
UnregisterTypes(Assembly) Unregisters all previously registered types (see RegisterTypes(Assembly)) in the assembly specified.
UnregisterTypes(IEnumerable) Unregisters the previously registered (see RegisterTypes(IEnumerable)) dataTypes specified.
UnregisterTypes(Type, Type) Unregisters the previously registered dataType and the further specified dataTypes (see RegisterTypes(Type, Type)).