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


ITestConnection.TestConnection Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

ITestConnection.TestConnection Method

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

Product Availability

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

Description

Returns the indication whether the connection failed or passed.

See Also

ITestConnection Interface