OPC Studio User's Guide and Reference
PropertyElement Property (DAPropertyDialog)



OpcLabs.EasyOpcForms Assembly > OpcLabs.EasyOpc.DataAccess.Forms.Browsing Namespace > DAPropertyDialog Class : PropertyElement Property
Gets the information about the OPC property selected in the dialog box.
Syntax
'Declaration
 
Public ReadOnly Property PropertyElement As DAPropertyElement
'Usage
 
Dim instance As DAPropertyDialog
Dim value As DAPropertyElement
 
instance.PropertyElement = value
 
value = instance.PropertyElement
public DAPropertyElement PropertyElement {get;}
public:
property DAPropertyElement^ PropertyElement {
   DAPropertyElement^ get();
}

Property Value

This value of this property can be null (Nothing in Visual Basic).

The default value of this property is null.

Because the OpcLabs.EasyOpc.DataAccess.AddressSpace.DAPropertyElement has an implicit conversion to System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned OpcLabs.EasyOpc.DataAccess.AddressSpace.DAPropertyElement in any place where System.String is expected as input, and the corresponding OPC DA property descriptor string (DescriptorString) will be taken automatically from the OPC DA property element.

Also, because there is an implicit conversion from OpcLabs.EasyOpc.DataAccess.AddressSpace.DAPropertyElement to OpcLabs.EasyOpc.DataAccess.DAPropertyDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned OpcLabs.EasyOpc.DataAccess.AddressSpace.DAPropertyElement in any place where OpcLabs.EasyOpc.DataAccess.DAPropertyDescriptor is expected as input, and the corresponding OPC DA property descriptor will be constructed automatically from the OPC DA property element. When the implicit conversion operators are not supported (such as with Python.NET), you can use the FromDAPropertyElement static method instead.

Remarks

The getter method of this property is pure, i.e. it does not have observable side effects.

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