Ping Method
See Also 
SourceCode.Hosting.Client.BaseAPI Namespace > DiscoverHost Class : Ping Method



host
port
timeout

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Shared Function Ping( _
   ByVal host As String, _
   ByVal port As Integer, _
   ByVal timeout As Integer _
) As String
Visual Basic (Usage) Copy Code
Dim host As String
Dim port As Integer
Dim timeout As Integer
Dim value As String
 
value = DiscoverHost.Ping(host, port, timeout)
C#  
public static string Ping( 
   string host,
   int port,
   int timeout
)
C++/CLI  
public:
static String^ Ping( 
   String^ host,
   int port,
   int timeout
) 

Parameters

host
port
timeout

Requirements

Target Platforms: 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