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 SetBrowserConfigScript method sets whether Web browsers running on Forefront TMG Client and Firewall Client computers will use the default automatic configuration script or the custom automatic configuration script, and can set the address (URL) or file name of the custom automatic configuration script.
Syntax
HRESULT SetBrowserConfigScript(
[in] FpcBrowserConfigScriptFlag Flag,
[in, optional] Script,
[in, optional] BSTR Script
);
FPCWebBrowserClientConfig.SetBrowserConfigScript( _
ByVal Flag As FpcBrowserConfigScriptFlag, _
[ ByVal Script As String ], _
[ ByVal Script ] _
)
Parameters
Flag [in]
Required. Value from the FpcBrowserConfigScriptFlag enumerated type that indicates whether the default automatic configuration script or a custom automatic configuration script will be used. The possible values are fpcBrowserDefaultScript and fpcBrowserCustomScript.Script [in, optional]
C++ String that specifies the address (URL) or file name of the custom automatic configuration script. The default value is an empty string.
VB String that specifies the address (URL) or file name of the custom automatic configuration script. The default value is an empty string.
Return value
C++
This method returns S_OK if the call is successful; otherwise, it returns an error code.
VB
This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
Remarks
This method sets the BrowserConfigScriptFlag and BrowserConfigScriptAddress properties.
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