Reference
OpcDataTypeMemberSwitchAttribute Class
Declares a field or property of a custom data type, to that the member belongs on that this attribute is applied, with conditional existence of the member within the stream of its custom data type.
Reference
OpcDataTypeMemberSwitchAttribute Class
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcDataTypeMemberSwitchAttribute 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 conditional existence of the member within the stream of its custom data type. Use this attribute to explicitly declare a field or property as optional. Its existence within the stream of its custom data type is declared either using a bit within the encoding mask of the whole data type (see OpcDataTypeEncodingMaskAttribute) using the constructors OpcDataTypeMemberSwitchAttribute and OpcDataTypeMemberSwitchAttribute or using the value of a preceding member using the constructors OpcDataTypeMemberSwitchAttribute, OpcDataTypeMemberSwitchAttribute or OpcDataTypeMemberSwitchAttribute.
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public class OpcDataTypeMemberSwitchAttribute : Attribute<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=False)>
Public Class OpcDataTypeMemberSwitchAttribute
Inherits AttributeInheritance
Object → Attribute → OpcDataTypeMemberSwitchAttribute
Constructors
| Name | Description |
|---|---|
| Opc | Initializes a new instance of the Opc |
Properties
| Name | Description |
|---|---|
| Bit | Gets the number of the bit which indiciates whether the field or property the attribute belongs to exists in the stream of the data type. |
| Name | Gets the name of the preceding member its value is to be evaluated to indicate that the member the attribute belongs exists in the stream of the data type. |
| Operator | Gets a value which identifies the comparison method to use to evaluate the value of member referenced by Name. |
| Value | Gets the value the value of the member referenced by Name is compared to. |
Methods
| Name | Description |
|---|---|
| GetSwitch | Retrieves the OpcMemberSwitch defined by the Opcbit specified. |
Inherits members from Attribute.
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

