Click or drag to resize

RequestContextExtensionsSetProxy(IRequestContext, String, NullableInt32, String) Method

Version 130.1.90
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: 129.0.110.0 (129.0.110.0)
Syntax
public static bool SetProxy(
	this IRequestContext requestContext,
	string host,
	int? port,
	out string errorMessage
)

Parameters

requestContext  IRequestContext
request context
host  String
proxy host
port  NullableInt32
proxy port
errorMessage  String
error message

Return Value

Boolean
returns 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).
Remarks
Internally calls with preference 'proxy' and mode of 'fixed_servers'
See Also