Compartir a través de


interface ICoreWebView2_20

interface ICoreWebView2_20
  : public ICoreWebView2_19

This interface is an extension of ICoreWebView2_19 that provides the FrameId property.

Summary

Members Descriptions
get_FrameId The unique identifier of the main frame.

Applies to

Product Introduced
WebView2 Win32 1.0.2210.55
WebView2 Win32 Prerelease 1.0.2357

Members

get_FrameId

The unique identifier of the main frame.

public HRESULT get_FrameId(UINT32 * value)

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