Skip to content

Reference

OpcNodeTypeMemberAttribute Class

Declares a field or property of a custom node 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

OpcNodeTypeMemberAttribute Class ​

since v2.20

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcNodeTypeMemberAttribute Members

Declares a field or property of a custom node 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.Method | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class OpcNodeTypeMemberAttribute : Attribute
vbnet
<AttributeUsage(AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=False)>
Public Class OpcNodeTypeMemberAttribute
    Inherits Attribute

Inheritance ​

Object → Attribute → OpcNodeTypeMemberAttribute

Constructors ​

NameDescription
OpcNodeTypeMemberAttribute2 overloadsInitializes a new instance of the OpcNodeTypeMemberAttribute 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.20–v2.59