Applies to: desktop apps only
HRESULT SetConnectivityRequest( [in] BSTR ServerAddress, [in] FpcRequestType RequestType, [in, optional] long TCPPort );
FPCConnectivityVerifier.SetConnectivityRequest( _ ByVal ServerAddress As String, _ ByVal RequestType As FpcRequestType, _ [ ByVal TCPPort As Long ] _ )
String value that specifies the address of the server to which connectivity is to be verified.
Value from the FpcRequestType enumerated type that specifies the type of request to be used in the verification operation of the connectivity verifier.
TCPPort [in, optional]
A 32-bit integer that specifies the TCP port on the remote server to which connectivity is to be verified. This parameter should be set only if the RequestType parameter is set to fpcTcpConnect.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
If the value of the RequestType parameter is set to fpcHttpConnect, a system policy rule, named Allow HTTP/HTTPS requests from Forefront TMG to selected servers for connectivity verifiers, which belongs to the HTTP Connectivity Verifiers configuration group, must be enabled for the connectivity verifier to work. For information about how to enable a system policy rule by enabling its configuration group, see the Enabled property of the FPCSystemPolicyConfigGroup object.
For a VBScript code example that shows how to use this method to set the request type of a new connectivity verifier, see Adding a Connectivity Verifier.
Minimum supported client
Minimum supported server
|Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)|
|Forefront Threat Management Gateway (TMG) 2010|
Build date: 7/12/2010