Skip to content

Reference

OpcDataTypeEncodingMaskAttribute Class

Defines the size of the mask used to encode optional field information of the custom data type represented by the Type on that this attribute is applied.

Reference

OpcDataTypeEncodingMaskAttribute Class ​

since v2.8

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcDataTypeEncodingMaskAttribute Members
Also in
Opc.UaFx.Client

Defines the size of the mask used to encode optional field information of the custom data type represented by the Type on that this attribute is applied. The furthermore available Kind is used to determine whether the mask data is controlled by the data type or is to be determined and processed inline while reading or writing the custom data type. For more information about how an optional field is declared see OpcEncodingMaskKind.

Syntax ​

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

Inheritance ​

Object → Attribute → OpcDataTypeEncodingMaskAttribute

Constructors ​

NameDescription
OpcDataTypeEncodingMaskAttribute2 overloadsInitializes a new instance of the OpcDataTypeEncodingMaskAttribute class using the OpcEncodingMaskKind value Auto and the smallest number of bytes required to represent the necessary bit mask to define the existence of optional fields.

Properties ​

NameDescription
KindGets the OpcEncodingMaskKind which is used to determine whether the mask data is controlled by the data type or is to be determined and processed inline while reading or writing the custom data type.
SizeGets or sets the number of bytes used to encode the existence of optional fields in the stream of the custom data type to that this attribute has been applied.
SizeInBitsGets or sets the number of bits to use to encode the existence of optional fields in the stream of the custom data type to that this attribute has been applied.

Methods ​

NameDescription
GetEncodingMaskRetrieves the OpcEncodingMask information defined by the OpcDataTypeEncodingMaskAttribute.

Inherits members from Attribute.

Applies to ​

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