Reference
OpcDataTypeMemberOffsetAttribute Class
Declares a field or property of a custom data type, to that the member belongs on that this attribute is applied, with an absolute zero-based start-offset within the stream of its custom data type.
Reference
OpcDataTypeMemberOffsetAttribute Class
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcDataTypeMemberOffsetAttribute 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 an absolute zero-based start-offset within the stream of its custom data type. Using the Offset specified means, that the members data starts at the byte specified by Offset. All preceding bytes are skipped; if not read for a prior member. When writing a member with a specific Offset all preceding bytes are written using zeros; if not written using a prior member. If this attribute is not defined, the first member is read and written using zero as its offset.
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class OpcDataTypeMemberOffsetAttribute : Attribute<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=False)>
Public Class OpcDataTypeMemberOffsetAttribute
Inherits AttributeInheritance
Object → Attribute → OpcDataTypeMemberOffsetAttribute
Constructors
| Name | Description |
|---|---|
| Opc | Initializes a new instance of the Opcoffset value specified. |
Properties
| Name | Description |
|---|---|
| Offset | Gets the position of the first byte which introduces the data of the member. |
Inherits members from Attribute.
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

