OPC Studio User's Guide and Reference
ServerElement Property (OpcServerDialog)



OpcLabs.EasyOpcForms Assembly > OpcLabs.EasyOpc.Forms.Browsing Namespace > OpcServerDialog Class : ServerElement Property
Gets the information about the OPC server selected in the dialog box.
Syntax
'Declaration
 
Public ReadOnly Property ServerElement As ServerElement
'Usage
 
Dim instance As OpcServerDialog
Dim value As ServerElement
 
instance.ServerElement = value
 
value = instance.ServerElement
public ServerElement ServerElement {get;}
public:
property ServerElement^ ServerElement {
   ServerElement^ 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.ServerElement 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.ServerElement in any place where System.String is expected as input, and the corresponding server URL string (OpcLabs.EasyOpc.ServerElement.UrlString) will be taken automatically from the OPC server element.

Also, because there are implicit conversions from OpcLabs.EasyOpc.ServerElement to OpcLabs.EasyOpc.ServerDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned OpcLabs.EasyOpc.ServerElement in any place where OpcLabs.EasyOpc.ServerDescriptor is expected as input, and the corresponding OPC server descriptor will be constructed automatically from the OPC server element. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.ServerDescriptor.FromServerElement 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