Connectivity Software User's Guide and Reference
ServerDescriptor Property (_DAItemDialog)



OpcLabs.EasyOpcForms Assembly > OpcLabs.EasyOpc.DataAccess.Forms.Browsing.ComTypes Namespace > _DAItemDialog Interface : ServerDescriptor Property
Gets or sets OPC server that is to be browsed for OPC items.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Property ServerDescriptor As ServerDescriptor
'Usage
 
Dim instance As _DAItemDialog
Dim value As ServerDescriptor
 
instance.ServerDescriptor = value
 
value = instance.ServerDescriptor
[JetBrains.Annotations.NotNull()]
ServerDescriptor ServerDescriptor {get; set;}
[JetBrains.Annotations.NotNull()]
property ServerDescriptor^ ServerDescriptor {
   ServerDescriptor^ get();
   void set (    ServerDescriptor^ value);
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

The default value of this property is ServerDescriptor.Null.

Remarks

This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.

Because the OpcLabs.EasyOpc.ServerDescriptor has an implicit conversion from System.Guid, System.String and OpcLabs.EasyOpc.ServerElement, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a GUID (representing the CLSID of the server), a string (representing the so-called OPC server descriptor string, such as a ProgID or the URL of the server), or a OpcLabs.EasyOpc.ServerElement object (result from OPC browsing), in place of OpcLabs.EasyOpc.ServerDescriptor value when setting this property, and the corresponding OPC server descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.EasyOpc.ServerDescriptor.FromGuid, OpcLabs.EasyOpc.ServerDescriptor.FromString or OpcLabs.EasyOpc.ServerDescriptor.FromServerElement static method instead.

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