A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cefsharp.github.io/api/118.6.x/html/M_CefSharp_IRequestContext_SetPreference.htm below:

IRequestContextSetPreference Method Version 118.6.80

Set the value associated with preference name. If value is null the preference will be restored to its default value. If setting the preference fails then error will be populated with a detailed description of the problem. This method must be called on the CEF UI thread. Preferences set via the command-line usually cannot be modified.

Namespace:  CefSharp
Assembly:

CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)

Syntax
bool SetPreference(
	string name,
	Object value,
	out string error
)
bool SetPreference(
	String^ name, 
	Object^ value, 
	[OutAttribute] String^% error
)
Parameters
name
Type: SystemString
preference key
value
Type: SystemObject
preference value
error
Type: SystemString
out error
Return Value

Type:

Boolean

Returns true if the value is set successfully and false otherwise.

Remarks

Use Cef.UIThreadTaskFactory to execute this method if required,

OnContextInitialized

and ChromiumWebBrowser.IsBrowserInitializedChanged are both executed on the CEF UI thread, so can be called directly. When CefSettings.MultiThreadedMessageLoop == false (the default is true) then the main application thread will be the CEF UI thread.

See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4