This document is archived and information here might be outdated.  Recommended version.

ITestConnection.TestConnection Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IT > ITestConnection Interface > ITestConnection.TestConnection Method
ArcGIS Developer Help

ITestConnection.TestConnection Method

Tests if the connection is successful with the current configuration.

[Visual Basic .NET]
Public Function TestConnection ( _
) As Boolean
public bool TestConnection (
HRESULT TestConnection(

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Returns the indication whether the connection failed or passed.

See Also

ITestConnection Interface