QuickOPC User's Guide and Reference
IsSwitch Property (DataField)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > DataField Class : IsSwitch Property
Determines whether the field acts as a switch for some other field.
Syntax
'Declaration
 
<DataMemberAttribute()>
<DefaultValueAttribute(False)>
Public Property IsSwitch As Boolean
'Usage
 
Dim instance As DataField
Dim value As Boolean
 
instance.IsSwitch = value
 
value = instance.IsSwitch
[DataMember()]
[DefaultValue(false)]
public bool IsSwitch {get; set;}
[DataMember()]
[DefaultValue(false)]
public:
property bool IsSwitch {
   bool get();
   void set (    bool value);
}
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