OPC Studio User's Guide and Reference
FromComputerElement Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Network Namespace > HostElement Class : FromComputerElement Method
The computer element to be converted.

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

Creates a host element that corresponds to a given computer element.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromComputerElement( _
   ByVal computerElement As ComputerElement _
) As HostElement
'Usage
 
Dim computerElement As ComputerElement
Dim value As HostElement
 
value = HostElement.FromComputerElement(computerElement)
[NotNull()]
public static HostElement FromComputerElement( 
   ComputerElement computerElement
)
[NotNull()]
public:
static HostElement^ FromComputerElement( 
   ComputerElement^ computerElement
) 

Parameters

computerElement
The computer element to be converted.

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

Return Value

If computerElement is null, returns a host computer element. Otherwise, returns a new HostElement that refers to the given machine.

This method never returns 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