Skip to content

Reference

OpcDataTypeMemberAttribute Class

Declares a field or property of a custom data type, to that the member belongs on that this attribute is applied, with different Name and Type information to use when reading and writing the member.

Reference

OpcDataTypeMemberAttribute Class ​

since v2.8

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

Declares a field or property of a custom data type, to that the member belongs on that this attribute is applied, with different Name and Type information to use when reading and writing the member. By default the Name and the Type are determined by the Name and the FieldType or PropertyType. In case there a different name or a different Type is to be used for a member use this attribute to declare them. Keep in mind to declare only different types which implement IConvertible supporting the Type specified; otherwise declare the desired type directly instead of using this attribute. Additionally its possible to derive from OpcData and use IOpcDataStore instances with properties to implement custom data convertion.

Syntax ​

csharp
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class OpcDataTypeMemberAttribute : Attribute
vbnet
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=False)>
Public Class OpcDataTypeMemberAttribute
    Inherits Attribute

Inheritance ​

Object → Attribute → OpcDataTypeMemberAttribute

Constructors ​

NameDescription
OpcDataTypeMemberAttribute2 overloadsInitializes a new instance of the OpcDataTypeMemberAttribute class.

Properties ​

NameDescription
DescriptionGets or sets a human readable text that describes the member.
NameGets the alternative name to use for the member this attribute belongs to.
TypeGets or sets the alternative Type to use for the member this attribute belongs to.

Inherits members from Attribute.

Applies to ​

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