Skip to content

Reference

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.

Reference

OpcNodeTypeMemberAttribute Members ​

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

Inherits members from Attribute.

Constructors ​

OpcNodeTypeMemberAttribute ​

2 overloads

OverloadDescription
OpcNodeTypeMemberAttribute()Initializes a new instance of the OpcNodeTypeMemberAttribute class.
OpcNodeTypeMemberAttribute(string)Initializes a new instance of the OpcNodeTypeMemberAttribute class using an alternative name specified for the member on that the OpcNodeTypeMemberAttribute has been declared.

OpcNodeTypeMemberAttribute() ​

Initializes a new instance of the OpcNodeTypeMemberAttribute class. Use this constructor in case you want to explicitly declare that the default Type and default Name of a node type member is used.

csharp
public OpcNodeTypeMemberAttribute()
vbnet
Public Sub New()

OpcNodeTypeMemberAttribute(string) ​

Initializes a new instance of the OpcNodeTypeMemberAttribute class using an alternative name specified for the member on that the OpcNodeTypeMemberAttribute has been declared.

csharp
public OpcNodeTypeMemberAttribute(string name)
vbnet
Public Sub New(name As String)

Parameters

NameTypeDescription
nameStringThe alternative name to use for the member.

Exceptions

ExceptionCondition
ArgumentExceptionThe name is an empty string.
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

Properties ​

Description ​

Gets or sets a human readable text that describes the member.

csharp
public string Description { get; set; }
vbnet
Public Property Description As String

Property value

String

A value which captures any semantic information that whould help a human to unterstand what is contained in the member.

Name ​

Gets the alternative name to use for the member this attribute belongs to.

csharp
public string Name { get; }
vbnet
Public ReadOnly Property Name As String

Property value

String

The alternative name to use for the member or a null reference (Nothing in Visual Basic) in case there is no alternative name for the member declared an its Name shall be used.

Type ​

Gets or sets the alternative Type to use for the member this attribute belongs to. 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.

csharp
public Type Type { get; set; }
vbnet
Public Property Type As Type

Property value

Type

The Type to use for the member or a null reference (Nothing in Visual Basic) in case there is no alternative Type for the member declared and its FieldType or PropertyType shall be used.