RequestContextExtensionsSetProxyAsync Method (IRequestContext, String, String, NullableInt32) | 
Version 93.1.111  
    Namespace: 
   CefSharp
    Assembly:
   CefSharp (in CefSharp.dll) Version: 93.1.111.0 (93.1.111.0)
Syntaxpublic static Task<SetProxyResponse> SetProxyAsync(
	this IRequestContext requestContext,
	string scheme,
	string host,
	int? port
)
public:
[ExtensionAttribute]
static Task<SetProxyResponse^>^ SetProxyAsync(
	IRequestContext^ requestContext, 
	String^ scheme, 
	String^ host, 
	Nullable<int> port
)
Parameters
- requestContext
 - Type: CefSharpIRequestContext
request context - scheme
 - Type: SystemString
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: SystemString
proxy host - port
 - Type: SystemNullableInt32
proxy port 
Return Value
Type: 
TaskSetProxyResponsereturns 
Success true if successfull, false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
IRequestContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
RemarksInternally calls  with
            preference 'proxy' and mode of 'fixed_servers'
See Also