RequestContextExtensionsSetProxy Method (IRequestContext, String, String) | 
Version 87.1.132 
            Sets the proxy server for the specified 
IRequestContext.
            Protocol for the proxy server is http
            MUST be called on the CEF UI Thread
            
 
    Namespace: 
   CefSharp
    Assembly:
   CefSharp (in CefSharp.dll) Version: 87.1.132.0 (87.1.132.0)
Syntaxpublic static bool SetProxy(
	this IRequestContext requestContext,
	string host,
	out string errorMessage
)
public:
[ExtensionAttribute]
static bool SetProxy(
	IRequestContext^ requestContext, 
	String^ host, 
	[OutAttribute] String^% errorMessage
)
Parameters
- requestContext
 - Type: CefSharpIRequestContext
request context - host
 - Type: SystemString
proxy host - errorMessage
 - Type: SystemString
error message 
Return Value
Type: 
Booleanreturns 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