Share via


EnableWebProxyClients Property of the IFPCNetwork Interface

The EnableWebProxyClients property gets or sets a Boolean value that indicates whether Web proxy clients on the network are supported.

C++

HRESULT put_EnableWebProxyClients(
    VARIANT_BOOL fWebProxyClientsEnabled
);
HRESULT get_EnableWebProxyClients(
    VARIANT_BOOL* pfWebProxyClientsEnabled
);

Parameters

  • fWebProxyClientsEnabled
    Boolean value that indicates whether Web proxy clients on the network are supported.

  • pfWebProxyClientsEnabled
    Pointer to a Boolean variable that is set on return to VARIANT_TRUE if Web proxy clients on the network are supported, or to VARIANT_FALSE if Web proxy clients on the network are not supported.

Return Value

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Visual Basic

Property EnableWebProxyClients As Boolean

Property Value

Boolean value that indicates whether Web proxy clients on the network are supported.

Example Code

This VBScript code example enables listening for requests from Web proxy clients on the Local Host network if it is not enabled.

' Define an enumeration value.
const fpcLocalHost = 2
' Create the root object.
Set root = CreateObject("FPC.Root")
' Declare the other objects needed.
Dim isaArray  ' An FPCArray object
Dim networks  ' An FPCNetworks collection
Dim network   ' An FPCNetwork object
' Get references to the array object 
' and the networks collection.
Set isaArray = root.GetContainingArray()
Set networks = isaArray.NetworkConfiguration.Networks
' Iterate through the networks, and for the Local Host network,
' enable listening for requests from Web Proxy clients if it is
' not enabled.
For Each network In networks
    If network.NetworkType = fpcLocalHost Then
        If network.EnableWebProxyClients = False Then
            network.EnableWebProxyClients = True
            network.Save
        End If
    End If
Next

Remarks

This property is read/write. Its default value is False (VARIANT_FALSE in C++).

For the Local Host network, this property must be set to True (VARIANT_TRUE in C++) before attempting to create a new content download job.

This property cannot be configured for the following predefined networks: Default External, Quarantined VPN Clients, and VPN Clients.

Requirements

Client Requires Windows 7 or Windows Vista.
Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCNetwork

Send comments about this topic to Microsoft

Build date: 6/30/2010