Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: desktop apps only
The TestConnectivity method performs a connectivity test to the specified web server.
Syntax
HRESULT TestConnectivity(
  [in]   BSTR ServerUrl,
  [in]   String ServerUrl,
  [in]   LONG PathPingMode,
  [in]   Long PathPingMode,
  [out]  BSTR *TestResult
);
FPCWebProxy.TestConnectivity( _
  ByVal ServerUrl As BSTR, _
  ByVal ServerUrl As String, _
  ByVal PathPingMode As LONG, _
  ByVal PathPingMode As Long, _
  ByRef TestResult As BSTR _
) As String
Parameters
- ServerUrl [in] - C++ - Required. A BSTR that specifies the URL of the Web server with which to test connectivity. The URL must not contain a path. - VB - Required. A string that specifies the URL of the Web server with which to test connectivity. The URL must not contain a path. 
- PathPingMode [in] - C++ - Required. A LONG that specifies the mode for running pathping. - VB - A 32-bit integer that specifies the mode for running pathping. 
- TestResult [out] 
 Pointer to a BSTR that is set on return to a string value specifying the results of the connectivity test.
Return value
C++
This method returns S_OK if the call is successful; otherwise, it returns an error code.
VB
This method returns a string value that specifies the results of the connectivity test if successful. Otherwise, an error is raised that can be intercepted by using an error handler.
Requirements
| Minimum supported client | Windows Vista | 
| Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only) | 
| Version | Forefront Threat Management Gateway (TMG) 2010 | 
| IDL | Msfpccom.idl | 
| DLL | Msfpccom.dll | 
See also
Build date: 7/12/2010