interface ICoreWebView2Experimental23

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

Note

This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.

interface ICoreWebView2Experimental23
  : public IUnknown

This is the ICoreWebView2Experimental23 that provides the FrameId property.

Summary

Members Descriptions
get_FrameId The unique identifier of the current frame.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.1988

Members

get_FrameId

The unique identifier of the current frame.

public HRESULT get_FrameId(UINT32 * id)

It's the same kind of ID as with the FrameId in CoreWebView2Frame and via CoreWebView2FrameInfo. Note that FrameId may not be valid if CoreWebView has not done any navigation. It's safe to get this value during or after the first DOMContentLoaded event. Otherwise, it could return the invalid frame Id 0.