Skip to content

Commit 78c9d32

Browse files
authored
Updated with the latest DotNet code update
1 parent f4daa76 commit 78c9d32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

specs/GetFavicon.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ CHECK_FAILURE(m_webView2->add_FaviconChanged(
5454
```c#
5555
webView.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
}

0 commit comments

Comments
 (0)