lr.get_host_name
Returns the name of the host.
C#
string lr.get_host_name();
VB.NET
Function lr.get_host_name( ) as String
| Informational Functions |
Arguments
| Name | Comments |
|---|---|
| N/A |
The lr.get_host_name function returns the name of the computer executing the script.
Return Values
The name of the host, or null if the operation fails.
Parameterization
Standard parameterization is not available for this function.
Example
The following example retrieves the host name, checks its validity, and sends it to the output.
string hostname=lr.get_host_name();
if(hostname==null)
lr.output_message("Failed to get the host name");
else
lr.output_message("Host Name= " +hostname);

