File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ CHECK_FAILURE(m_webView2->add_FaviconChanged(
5454```c#
5555webView.CoreWebView2.FaviconChanged += (CoreWebView2 sender, Object arg) =>
5656{
57- IStream stream = await webView.CoreWebView2.GetFaviconAsync(
57+ IRandomAccessStream stream = await webView.CoreWebView2.GetFaviconAsync(
5858 CoreWebView2FaviconImageFormat.Png);
5959 // setting the window Icon to the bitmap
6060 this.Icon = BitmapFrame.Create(stream);
@@ -156,7 +156,7 @@ namespace Microsoft.Web.WebView2.Core
156156 Png = 0 ,
157157 Jpeg = 1 ,
158158 };
159-
159+
160160 runtimeclass CoreWebView2
161161 {
162162 [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2_10" )]
@@ -165,7 +165,7 @@ namespace Microsoft.Web.WebView2.Core
165165
166166 event Windows .Foundation .TypedEventHandler < CoreWebView2 , Object > FaviconChanged ;
167167
168- Windows .Foundation .IAsyncAction GetFaviconAsync (CoreWebView2FaviconImageFormat format );
168+ Windows .Foundation .IAsyncOperation < Windows . Storage . Streams . IRandomAccessStream > GetFaviconAsync (CoreWebView2FaviconImageFormat format );
169169 }
170170 }
171171}
You can’t perform that action at this time.
0 commit comments