Esempio n. 1
0
#pragma warning restore 1591

        /// <summary>
        /// 非保護モードのIEからCookieを取得するICookieImporterを取得します。
        /// </summary>
        public ICookieImporter GetIECookieImporter()
        {
            if (_ieImporter == null)
            {
                var cookieFolder = Environment.GetFolderPath(Environment.SpecialFolder.Cookies);
                _ieImporter = new IECookieImporter(new CookieSourceInfo(
                                                       "IE Normal", "Default", cookieFolder, ENGINE_ID_NORMAL_IE, false), 3);
            }
            return(_ieImporter);
        }
#pragma warning restore 1591

        /// <summary>
        /// 非保護モードのIEからCookieを取得するICookieImporterを取得します。
        /// </summary>
        public ICookieImporter GetIECookieImporter()
        {
            if (_ieImporter == null)
            {
                var cookieFolder = Environment.GetFolderPath(Environment.SpecialFolder.Cookies);
                _ieImporter = new IECookieImporter(new CookieSourceInfo(
                    "IE Normal", "Default", cookieFolder, ENGINE_ID_NORMAL_IE, false), 0);
            }
            return _ieImporter;
        }