Help Center

CWebView2.GetSourcemethod

The URI of the current top level document.

WebViewmethoddocumented

Syntax

FUNCTION GetSource () AS DWSTRING

Description

Gets the URI of the current top level document.

This value potentially changes as a part of the SourceChanged event that runs for some cases such as navigating to a different site or fragment navigations. It remains the same for other types of navigations such as page refreshes or history.pushState with the same URL as the current page.

Reference

  • Defined in AfxNova/CWebView2.inc:716
  • Documented in WebView/CWebWiew2 Class.md
  • Topic: CWebView2 Class