File tree Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Expand file tree Collapse file tree 1 file changed +2
-23
lines changed 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
33
33
Windows .Storage .StorageFolder localFolder = Windows .Storage .ApplicationData .Current .LocalFolder ;
34
34
string book1Path = localFolder .Path + @" \book1" ;
35
35
webView .CoreWebView2 .SetVirtualHostNameToFolderMapping (
36
- new Windows . Networking . HostName ( " book1.example" ) ,
36
+ " book1.example" ,
37
37
book1Path , CoreWebView2HostResourceAccessKind .DenyCors );
38
38
webView .Source = new Uri (" https://book1.example/index.html" );
39
39
```
@@ -170,7 +170,7 @@ interface ICoreWebView2_2 : ICoreWebView2 {
170
170
}
171
171
```
172
172
173
- ## .Net
173
+ ## .Net WinRT
174
174
175
175
``` c#
176
176
namespace Microsoft .Web .WebView2 .Core
@@ -190,24 +190,3 @@ namespace Microsoft.Web.WebView2.Core
190
190
}
191
191
}
192
192
```
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