Version

TestConnection(Boolean) Method

Returns a boolean value indicating whether the Connection is currently valid.
Syntax
'Declaration
 
Public Overloads Function TestConnection( _
   Optional ByVal keepOpen As Boolean _
) As Boolean
public bool TestConnection( 
   bool keepOpen
)

Parameters

keepOpen
Optional boolean value indicating whether the connection, if successful, should be kept open. By default, the connection is immediately closed.

Return Value

A boolean value indicating whether the connection succeeded.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also