Click or drag to resize

RequestContextBuilderWithPreference Method

Version 94.4.20
Set the value associated with preference name when the RequestContext is initialzied. If value is null the preference will be restored to its default value. If setting the preference fails no error is throw, you must check the CEF Log file. Preferences set via the command-line usually cannot be modified.

Namespace:  CefSharp
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version:
public RequestContextBuilder WithPreference(
	string name,
	Object value


Type: SystemString
preference key
Type: SystemObject
preference value

Return Value

Type: RequestContextBuilder
Returns RequestContextBuilder instance
See Also