Click or drag to resize

RequestContextHandler.SetProxyOnContextInitialized Method (String, String, Nullable<Int32>)

Version 93.1.111
Sets the proxy preferences when the OnRequestContextInitialized(IRequestContext) method is called. Proxy set via the command-line usually cannot be modified.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 93.1.111.0 (93.1.111.0)
Syntax
public RequestContextHandler SetProxyOnContextInitialized(
	string scheme,
	string host,
	int? port
)

Parameters

scheme
Type: System.String
is the protocol of the proxy server, and is one of: 'http', 'socks', 'socks4', 'socks5'. Also note that 'socks' is equivalent to 'socks5'.
host
Type: System.String
proxy host
port
Type: System.Nullable<Int32>
proxy port

Return Value

Type: RequestContextHandler
A RequestContextHandler instance allowing you to chain multiple AddPreference calls together
See Also