File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ for `book1.example` host name so that it can be accessed using normal http/https
3333Windows .Storage .StorageFolder localFolder = Windows .Storage .ApplicationData .Current .LocalFolder ;
3434string book1Path = localFolder .Path + @" \book1" ;
3535webView .CoreWebView2 .SetVirtualHostNameToFolderMapping (
36- new Windows . Networking . HostName ( " book1.example" ) ,
36+ " book1.example" ,
3737 book1Path , CoreWebView2HostResourceAccessKind .DenyCors );
3838webView .Source = new Uri (" https://book1.example/index.html" );
3939```
@@ -170,7 +170,7 @@ interface ICoreWebView2_2 : ICoreWebView2 {
170170}
171171```
172172
173- ## .Net
173+ ## .Net WinRT
174174
175175``` c#
176176namespace Microsoft .Web .WebView2 .Core
@@ -190,24 +190,3 @@ namespace Microsoft.Web.WebView2.Core
190190 }
191191}
192192```
193-
194- ## WinRT
195-
196- ``` c#
197- namespace Microsoft .Web .WebView2 .Core
198- {
199- public enum CoreWebView2HostResourceAccessKind
200- {
201- Deny = 0 ,
202- Allow = 1 ,
203- DenyCors = 2
204- }
205-
206- public partial class CoreWebView2
207- {
208- // There are other API in this interface that we are not showing
209- public void SetVirtualHostNameToFolderMapping (Windows.Networking.HostName hostName , string folderPath , CoreWebView2HostResourceAccessKind accessKind );
210- public void ClearVirtualHostNameToFolderMapping (string hostName );
211- }
212- }
213- ```
You can’t perform that action at this time.
0 commit comments