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
- 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
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class OpcDataTypeMemberLengthAttribute : Attribute<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=False)>
Public Class OpcDataTypeMemberLengthAttribute
Inherits AttributeInheritance
Object → Attribute → OpcDataTypeMemberLengthAttribute
Constructors
| Name | Description |
|---|---|
| Opc | Initializes a new instance of the Opc |
Properties
| 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. |
Methods
| Name | Description |
|---|---|
| GetLength | Retrieves the OpcMemberLength defined by the Opc |
Inherits members from Attribute.
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

