NavigationWindow.StopLoading 方法

定义

停止为当前导航请求下载更多内容。

public:
 virtual void StopLoading();
public:
 void StopLoading();
public void StopLoading ();
abstract member StopLoading : unit -> unit
override this.StopLoading : unit -> unit
member this.StopLoading : unit -> unit
Public Sub StopLoading ()

示例

以下示例演示如何调用 StopLoading 方法以在内容下载完成之前停止导航到内容。

void navigateStopButton_Click(object sender, RoutedEventArgs e)
{
    this.StopLoading();
}
Private Sub navigateStopButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Me.StopLoading()
End Sub

注解

StopLoading 停止下载请求的内容,并引发 NavigationStopped 事件。

请参阅 NavigationService.StopLoading

适用于

另请参阅