Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll
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.
C#
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] public class OpcDataTypeEncodingMaskAttribute : Attribute, _Attribute
Inheritance Object › Attribute › OpcDataTypeEncodingMaskAttribute
Attributes AttributeUsageAttribute
Implements InteropServices._Attribute
Name | Description |
---|---|
OpcDataTypeEncodingMaskAttribute | Initializes 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. |
OpcDataTypeEncodingMaskAttribute(OpcEncodingMaskKind) | Initializes a new instance of the OpcDataTypeEncodingMaskAttribute class using the kind specified and the smallest number of bytes required to represent the necessary bit mask to define the existence of optional fields. |
Name | Description |
---|---|
Kind | Gets 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. |
Size | Gets 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. |
SizeInBits | Gets 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. |
Name | Description |
---|---|
GetEncodingMask | Retrieves the OpcEncodingMask information defined by the OpcDataTypeEncodingMaskAttribute. |