OpcDataTypeMemberLengthAttribute Class

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

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(Int64) or using the value of a preceding member (= variable length) using the constructor OpcDataTypeMemberLengthAttribute(String).

C#

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class OpcDataTypeMemberLengthAttribute : Attribute, _Attribute


Inheritance ObjectAttribute › OpcDataTypeMemberLengthAttribute


Attributes AttributeUsageAttribute


Implements InteropServices._Attribute

Name Description
OpcDataTypeMemberLengthAttribute(Int64) Initializes a new instance of the OpcDataTypeMemberLengthAttribute class which declares a field or property with a fixed length.
OpcDataTypeMemberLengthAttribute(String) Initializes a new instance of the OpcDataTypeMemberLengthAttribute class which declares a field or property with a variable length controlled by the value of a preceding field or property which can be identified by the name specified.
Name Description
Length Gets the total number of instances within the stream of the custom data type of the member the attribute belongs to.
Name Gets the name of the preceding member its value is to be evaluated to indicate the variable length of the member the attribute belongs to.
Name Description
GetLength Retrieves the OpcMemberLength defined by the OpcDataTypeMemberLengthAttribute.