QuickOPC User's Guide and Reference
IsOptional Property (UAStructureField)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeSchema Namespace > UAStructureField Class : IsOptional Property
Indicates if a data type field in a structure is optional.
Syntax
'Declaration
 
<DefaultValueAttribute(False)>
Public Property IsOptional As Boolean
'Usage
 
Dim instance As UAStructureField
Dim value As Boolean
 
instance.IsOptional = value
 
value = instance.IsOptional
[DefaultValue(false)]
public bool IsOptional {get; set;}
[DefaultValue(false)]
public:
property bool IsOptional {
   bool get();
   void set (    bool value);
}
Remarks

If the structure type is UAStructureType.Union, this property is ignored.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also