Skip to content

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 ​

since v2.8

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 ​

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

Inheritance ​

Object → Attribute → OpcDataTypeMemberOffsetAttribute

Constructors ​

NameDescription
OpcDataTypeMemberOffsetAttributeInitializes a new instance of the OpcDataTypeMemberOffsetAttribute class using the offset value specified.

Properties ​

NameDescription
OffsetGets the position of the first byte which introduces the data of the member.

Inherits members from Attribute.

Applies to ​

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