IRequestContextHasPreference Method  | 
Version 93.1.111 
            Returns true if a preference with the specified name exists. This method
            must be called on the CEF UI thread.
            
 
    Namespace: 
   CefSharp
    Assembly:
   CefSharp (in CefSharp.dll) Version: 93.1.111.0 (93.1.111.0)
Syntaxbool HasPreference(
	string name
)
bool HasPreference(
	String^ name
)
Parameters
- name
 - Type: SystemString
name of preference 
Return Value
Type: 
Booleanbool if the preference exists
RemarksUse 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