Skip to content

Reference

OpcDataTypeMemberLengthAttribute Class

Declares a field or property of a custom data type, to that the member belongs on that this attribute is applied, with a variable or fixed length of the member within the stream of its custom data type.

Reference

OpcDataTypeMemberLengthAttribute Class ​

since v2.8

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcDataTypeMemberLengthAttribute 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 a variable or fixed length of the member within the stream of its custom data type. Use this attribute to explicitly declare a field or property with a variable or fixed length. The length within the stream of its custom data type is declared either using the number of instances (= fixed length) using the constructor OpcDataTypeMemberLengthAttribute or using the value of a preceding member (= variable length) using the constructor OpcDataTypeMemberLengthAttribute.

Syntax ​

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

Inheritance ​

Object → Attribute → OpcDataTypeMemberLengthAttribute

Constructors ​

NameDescription
OpcDataTypeMemberLengthAttribute2 overloadsInitializes a new instance of the OpcDataTypeMemberLengthAttribute class which declares a field or property with a fixed length.

Properties ​

NameDescription
LengthGets the total number of instances within the stream of the custom data type of the member the attribute belongs to.
NameGets the name of the preceding member its value is to be evaluated to indicate the variable length of the member the attribute belongs to.

Methods ​

NameDescription
GetLengthRetrieves the OpcMemberLength defined by the OpcDataTypeMemberLengthAttribute.

Inherits members from Attribute.

Applies to ​

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