OPC Studio User's Guide and Reference
HostElement Constructor(String)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Network Namespace > HostElement Class > HostElement Constructor : HostElement Constructor(String)
Name of the host.

The value represents a DNS computer name, e.g. "domain.com", "example.microsoft.com", or "135.5.33.19". Any string can be passed to this parameter (i.e. will not cause System.ArgumentException), but not all values make sense and will work when an operation using them is attempted. Under normal conditions, host names are not empty, and they do not contain specific disallowed characters (",~:!@#$%^&'(){} ").

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

Initializes a new instance of the class, given a host name.
Syntax
'Declaration
 
Public Function New( _
   ByVal hostName As String _
)
'Usage
 
Dim hostName As String
 
Dim instance As New HostElement(hostName)
public HostElement( 
   string hostName
)
public:
HostElement( 
   String^ hostName
)

Parameters

hostName
Name of the host.

The value represents a DNS computer name, e.g. "domain.com", "example.microsoft.com", or "135.5.33.19". Any string can be passed to this parameter (i.e. will not cause System.ArgumentException), but not all values make sense and will work when an operation using them is attempted. Under normal conditions, host names are not empty, and they do not contain specific disallowed characters (",~:!@#$%^&'(){} ").

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

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