The OpenD Programming Language

ICoreWebView2.get_Source

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.

The caller must free the returned string with CoTaskMemFree. See API Conventions.

\snippet ControlComponent.cpp SourceChanged

interface ICoreWebView2
@" propget"
HRESULT
get_Source
(
LPWSTR* uri
)

Meta