Skip to content

Commit 1bc14fe

Browse files
authored
Update GetFavicon.md
1 parent ea83a02 commit 1bc14fe

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

specs/GetFavicon.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,12 @@ typedef enum COREWEBVIEW2_FAVICON_IMAGE_FORMAT {
111111

112112
## .Net/ WinRT
113113
```c#
114-
namespace Microsoft.Web.WebView2.Core {
114+
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2")]
115+
{
116+
String FaviconUri { get; };
115117

116-
enum CoreWebView2FaviconImageFormat
117-
{
118-
Png = 0,
119-
Jpeg = 1,
120-
};
118+
event Windows.Foundation.TypedEventHandler<CoreWebView2, Object> FaviconChanged;
121119

122-
/// Interface for the Favicon uri changed event handler
123-
runtimeclass CoreWebView2 {
124-
Windows.Foundation.IAsyncAction GetFaviconAsync(CoreWebView2FaviconImageFormat imageFormat, Windows.Storage.Streams.IRandomAccessStream imageStream);
125-
event Windows.Foundation.TypedEventHandler<CoreWebView2, Object> FaviconChanged;
126-
string FaviconUri {get;};
127-
}
120+
Windows.Foundation.IAsyncAction GetFaviconAsync(CoreWebView2FaviconImageFormat format, Windows.Storage.Streams.IRandomAccessStream imageStream);
128121
}
129122
```

0 commit comments

Comments
 (0)