共用方式為


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

適用於

另請參閱