其他分享
首页 > 其他分享> > 如何在CefSharp中保存cookie

如何在CefSharp中保存cookie

作者:互联网

public partial class MainWindow : Window
    {
        public MainWindow()
        {
            CefSharp.CefSettings settings = new CefSharp.CefSettings();
            settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\CEF"; 
           CefSharp.Cef.Initialize(settings);

            InitializeComponent();
            //webcontrol.BrowserSettings.ApplicationCache = CefSharp.CefState.Enabled;

        }
    }

  

标签:CefSharp,settings,保存,public,Environment,cookie,CefSettings,MainWindow
来源: https://www.cnblogs.com/guangzhiruijie/p/16618658.html