WebBrowser.GoForward 메서드

정의

다음 HTML 문서(있는 경우)로 이동합니다.

public:
 void GoForward();
[System.Security.SecurityCritical]
public void GoForward ();
public void GoForward ();
[<System.Security.SecurityCritical>]
member this.GoForward : unit -> unit
member this.GoForward : unit -> unit
Public Sub GoForward ()
특성

예외

WebBrowser 인스턴스가 더 이상 유효하지 않습니다.

기본 네이티브 WebBrowser에 대한 참조를 검색할 수 없습니다.

탐색할 다음 문서가 없는 경우

예제

다음 예제에서는 다음 문서를 호출 GoForward하여 앞으로 이동하는 방법을 보여줍니다. 이 예제에서는 먼저 확인하여 앞으로 이동할 문서가 있는지 확인합니다 CanGoForward.

private void forwardButton_Click(object sender, RoutedEventArgs e)  
{  
  // Navigate to the next HTML document, if there is one  
  if (this.webBrowser.CanGoForward)  
  {  
    this.webBrowser.GoForward();  
  }  
}  

설명

호출 GoForward 하고 앞으로 WebBrowser 이동할 문서가 없는 경우 탐색을 수행하지 않고 예외가 throw됩니다. 필요한 경우 속성 값을 CanGoForward 검사하여 앞으로 이동할 문서가 있는지 확인할 수 있습니다.

적용 대상

추가 정보