OPC Studio User's Guide and Reference
FromHostElement Method



View with Navigation Tools
OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Network Namespace > ComputerElement Class : FromHostElement Method
The host element to be converted.
Creates a computer element that corresponds to a given host element.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromHostElement( _
   ByVal hostElement As HostElement _
) As ComputerElement
 
'Usage
 
Dim hostElement As HostElement
Dim value As ComputerElement
 
value = ComputerElement.FromHostElement(hostElement)

Parameters

hostElement
The host element to be converted.

Return Value

If hostElement is null, returns an empty computer element. Otherwise, returns a new ComputerElement that refers to the given host.
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