QuickOPC User's Guide and Reference
ServerName Property (UADiscoveryElement)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UADiscoveryElement Class : ServerName Property
The name of the Server (specified in the mDNS announcement).
Syntax
'Declaration
 
<ColumnDisplayAttribute(1)>
<DefaultValueAttribute("")>
<DisplayAttribute(AutoGenerateField=False, 
   Order=104, 
   ShortName="Server Name")>
Public Property ServerName As String
'Usage
 
Dim instance As UADiscoveryElement
Dim value As String
 
instance.ServerName = value
 
value = instance.ServerName
[ColumnDisplay(1)]
[DefaultValue("")]
[Display(AutoGenerateField=false, 
   Order=104, 
   ShortName="Server Name")]
public string ServerName {get; set;}
[ColumnDisplay(1)]
[DefaultValue("")]
[Display(AutoGenerateField=false, 
   Order=104, 
   ShortName="Server Name")]
public:
property String^ ServerName {
   String^ get();
   void set (    String^ value);
}
Remarks
This may be the same as the ApplicationName for the Server.
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