Design In Context
APIs
: Test_connection
Test_connection
Checks whether given URL is valid live DashBoard site.
Syntax:
Public static bool Test_connection(
string URL,
out string strMessage
)
Parameters:
URL - The dashboard URL to be tested
strMessage - When this method returns, contains the error message, if test fails otherwise, contains String.Empty
Return value:
true if success; otherwise, false.
Example:
string strMessage = string.Empty;
if (Test_connection("http://inhyzvms8r09:16000/", out strMessage))
{
Console.WriteLine("Success - Test Connection");
}
else
{
Console.WriteLine("Failed - Test Connection. Error - {0}", strMessage);
}
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.