WebBrowser.Source 속성

정의

에서 호스트Uri되는 WebBrowser 현재 문서의 값을 가져오거나 설정합니다.

public:
 property Uri ^ Source { Uri ^ get(); void set(Uri ^ value); };
public Uri Source { [System.Security.SecurityCritical] get; set; }
public Uri Source { get; set; }
[<get: System.Security.SecurityCritical>]
member this.Source : Uri with get, set
member this.Source : Uri with get, set
Public Property Source As Uri

속성 값

Uri

Uri 현재 HTML 문서의 경우입니다.

특성

예외

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

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

부분 신뢰 Uri 로 실행되는 애플리케이션에서 원본 사이트에 없는 애플리케이션으로 탐색합니다.

예제

다음 예제에서는 태그만 사용하여 HTML 문서로 이동하도록 구성하는 WebBrowser 방법을 보여 줍니다.

<!-- Web Browser Control that hosts a web page. -->
<WebBrowser x:Name="webBrowser" Source="http://msdn.com"
  Width="600" Height="600"  />

설명

원본 속성을 설정하면 WebBrowser .에서 지정한 Uri문서로 이동합니다. 이 Urinull경우 빈 문서가 표시됩니다("about:blank").

적용 대상