繁体   English   中英

获取 WebView2 ResponseCode 说明

[英]Get the WebView2 ResponseCode Description

我正在将我的 WebBrowser 更改为 WebView2,以便它在我的 WinForm 应用程序中与 Edge 一起使用。

我希望能够获得 WebView2 状态的描述。 以前我使用过 WebBrowser.StatusText。

到目前为止,我已经尝试过:

Private Sub WebView21_NavigationCompleted(sender As Object, e As CoreWebView2NavigationCompletedEventArgs) Handles WebView21.NavigationCompleted MsgBox(e.HttpStatusCode) End Sub

但我想返回代码的描述(例如 200 = OK,404 == Not Found 等)

请问你能帮忙吗?

谢谢

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM