@@ -189,9 +189,9 @@ void AddOrUpdateCookieCmdExecuted(object target, ExecutedRoutedEventArgs e)
189189async 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