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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Network Namespace > ComputerElement Class > ComputerElement Constructor : ComputerElement Constructor(String)
Name of the machine (empty string for local computer).

The value represents a UNC or DNS computer name. 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. IPv6 addresses are normally enclosed between '[' and ']'.

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

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

Parameters

machineName
Name of the machine (empty string for local computer).

The value represents a UNC or DNS computer name. 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. IPv6 addresses are normally enclosed between '[' and ']'.

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