WebAccountManager.PushCookiesAsync(Uri, IVectorView<HttpCookie>) 方法

定义

异步推送 Cookie。 在用户将其凭据输入到应用中后,使用它在浏览器中为 Web 帐户启用单一登录。

public:
 static IAsyncAction ^ PushCookiesAsync(Uri ^ uri, IVectorView<HttpCookie ^> ^ cookies);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction PushCookiesAsync(Uri const& uri, IVectorView<HttpCookie> const& cookies);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction PushCookiesAsync(System.Uri uri, IReadOnlyList<HttpCookie> cookies);
function pushCookiesAsync(uri, cookies)
Public Shared Function PushCookiesAsync (uri As Uri, cookies As IReadOnlyList(Of HttpCookie)) As IAsyncAction

参数

uri
Uri Uri

将 Cookie 推送到的 URI。

cookies

IVectorView<HttpCookie>

IReadOnlyList<HttpCookie>

要推送的 Cookie。

返回

此方法不返回值。

属性

适用于