Skip to content

Commit da64e47

Browse files
committed
CoreWebView2CookieList implements Windows.Foundation.Collections.IVector<CoreWebView2Cookie>
1 parent 5956f34 commit da64e47

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

specs/CookieManagement.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ void AddOrUpdateCookieCmdExecuted(object target, ExecutedRoutedEventArgs e)
189189
async void GetCookiesCmdExecuted(object target, ExecutedRoutedEventArgs e)
190190
{
191191
CoreWebView2CookieList cookieList = await webView.CoreWebView2.CookieManager.GetCookiesAsync("https://www.bing.com");
192-
for (uint i = 0; i < cookieList.Count; ++i)
192+
for (int i = 0; i < cookieList.Count; ++i)
193193
{
194-
CoreWebView2Cookie cookie = cookieList.GetValueAtIndex(i);
194+
CoreWebView2Cookie cookie = cookieList[i];
195195
System.Net.Cookie dotNetCookie = CoreWebView2Cookie.CoreWebView2ToDotNetCookie(cookie);
196196
Console.WriteLine(dotNetCookie.ToString());
197197
}
@@ -312,7 +312,7 @@ interface ICoreWebView2CookieManager : IUnknown {
312312
313313
/// Creates a cookie whose params matches those of the specified cookie.
314314
HRESULT CreateCookie(
315-
[in] ICoreWebView2StagingCookie cookieParam,
315+
[in] ICoreWebView2StagingCookie* cookieParam,
316316
[out, retval] ICoreWebView2StagingCookie** cookie);
317317
318318
/// Gets a list of cookies matching the specific URI.
@@ -433,13 +433,13 @@ namespace Microsoft.Web.WebView2.Core
433433
}
434434

435435
/// A list of cookie objects.
436-
runtimeclass CoreWebView2CookieList
436+
runtimeclass CoreWebView2CookieList : Windows.Foundation.Collections.IVector<CoreWebView2Cookie>
437437
{
438438
/// The number of cookies contained in the CoreWebView2CookieList.
439-
UInt32 Count { get; };
439+
uint Size { get; };
440440

441441
/// Get the cookie object at the given index.
442-
CoreWebView2Cookie GetValueAtIndex(UInt32 index);
442+
CoreWebView2Cookie GetAt(uint index);
443443
}
444444

445445
/// Provides a set of properties that are used to manage a CoreWebView2Cookie.

0 commit comments

Comments
 (0)