This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IT > ITestConnection Interface > ITestConnection.TestConnection Method (ArcObjects .NET 10.4 SDK) |
Tests if the connection is successful with the current configuration.
[Visual Basic .NET] Public Function TestConnection ( _ ) As Boolean
[C#] public bool TestConnection ( );
[C++]
HRESULT TestConnection(
VARIANT_BOOL* successful
);
[C++]
Parameters successful [out, retval] successful is a parameter of type VARIANT_BOOL
Returns the indication whether the connection failed or passed.