资源简介
这是一个封装了Chromium 框架的 .NET 类库。从而可以方便的使用 cefsharp相关的功能
代码片段和文件信息
// Copyright © 2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace CefSharp
{
///
/// Async extensions for different interfaces
///
public static class AsyncExtensions
{
///
/// Deletes all cookies that matches all the provided parameters asynchronously.
/// If both and are empty all cookies will be deleted.
///
/// cookie manager
/// The cookie URL. If an empty string is provided any URL will be matched.
/// The name of the cookie. If an empty string is provided any URL will be matched.
/// Returns -1 if a non-empty invalid URL is specified or if cookies cannot be accessed;
/// otherwise a task that represents the delete operation. The value of the TResult will be the number of cookies that were deleted or -1 if unknown.
public static Task DeleteCookiesAsync(this ICookieManager cookieManager string url = null string name = null)
{
if (cookieManager == null)
{
throw new NullReferenceException(“cookieManager“);
}
if (cookieManager.IsDisposed)
{
throw new objectDisposedException(“cookieManager“);
}
var callback = new TaskDeleteCookiesCallback();
if (cookieManager.DeleteCookies(url name callback))
{
return callback.Task;
}
//There was a problem deleting cookies
return Task.FromResult(TaskDeleteCookiesCallback.InvalidNoOfCookiesDeleted);
}
///
/// Sets a cookie given a valid URL and explicit user-provided cookie attributes.
/// This function expects each attribute to be well-formed. It will check for disallowed
/// characters (e.g. the ‘;‘ character is disallowed within the cookie value attribute) and will return false without setting
///
/// cookie manager
/// The cookie URL. If an empty string is provided any URL will be matched.
/// the cookie to be set
/// returns false if the cookie cannot be set (e.g. if illegal charecters such as ‘;‘ are used);
/// otherwise task that represents the set operation. The value of the TResult parameter contains a bool to indicate success.
public static Task SetCookieAsync(this ICookieManager cookieManager string url Cookie cookie)
{
if (cookieManager == null)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-10 01:39 CefSharp-master\
文件 8964 2019-03-10 01:39 CefSharp-master\.editorconfig
文件 172 2019-03-10 01:39 CefSharp-master\.gitattributes
目录 0 2019-03-10 01:39 CefSharp-master\.github\
文件 1217 2019-03-10 01:39 CefSharp-master\.github\config.yml
文件 711 2019-03-10 01:39 CefSharp-master\.github\no-response.yml
文件 1077 2019-03-10 01:39 CefSharp-master\.github\support.yml
文件 490 2019-03-10 01:39 CefSharp-master\.gitignore
文件 270 2019-03-10 01:39 CefSharp-master\Build.bat
文件 10516 2019-03-10 01:39 CefSharp-master\CONTRIBUTING.md
目录 0 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\
文件 888 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\AssemblyInfo.cpp
目录 0 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\
文件 1498 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\ja
文件 1332 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\ja
文件 3141 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\ja
文件 1701 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\ja
文件 789 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\ja
文件 1007 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\ja
文件 1352 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\ja
文件 1542 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\Async\ja
文件 30012 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\CefAppUnmanagedWrapper.cpp
文件 4068 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\CefAppUnmanagedWrapper.h
文件 2048 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\CefBrowserWrapper.h
文件 13794 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\CefSharp.BrowserSubprocess.Core.vcxproj
文件 6062 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\CefSharp.BrowserSubprocess.Core.vcxproj.filters
文件 1398 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\ja
文件 1702 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\ja
文件 1154 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\ja
文件 2515 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\ja
文件 1348 2019-03-10 01:39 CefSharp-master\CefSharp.BrowserSubprocess.Core\ja
............此处省略701个文件信息
相关资源
- OpenCollada_3dsMax插件解压密码www.csdn.n
- Teigha_Net_40010(含放大缩小拖拽功能
- CefSharp v51 Net 4.5.2 封装谷歌浏览器
-
pepflashpla
yer - CefSharp调用google浏览器内核ChromiumWeb
- .NET Reactor 4.9 破解版
- npoi .net 2.0和4.0版本
- .net人事工资考勤管理系统设计与实现
- Dundas系列控件仪表控件For.Net2008桌面版
-
Windows .NET fr
amework API 帮助文档3 - C.net编程与实践图像处理Pdf加随书光盘
- ext.net中文教程
- .NET性能测试工具-ANTS Memory Profiler 8 安
- SAP_DotNetConnector3 NCO .net4和2 64位 32位全
- TeeChart相关资料集锦
- microsoft-windows-netfx3-x86-package.cab
- .Net网络爬虫
- 文档图像处理工具GdPicture.NET Ultimate
- Microsoft .NET IL汇编语言程序设计中文版
- 2019最新.Net MVC微信授权登录及微信支
- Visual.Basic.NET中文版程序设计培训教程
- TeeChart for .NET 3.0 For Visual Studio 2005 破
- 传智播客Unity3D视频教程— 6-传智播客
- 医药销售系统
- paint.net 源码
- Eziriz .NET Reactor 5.9.8.0
- Infragistics NetAdvantage for Windows Forms 20
- Eziriz.NET.Reactor.5.9.8.0 破解版
- .net餐饮管理系统源码
- Rx.NET in Action
评论
共有 条评论