ICoreWebView2FrameInfo2

Undocumented in source.

Members

Functions

get_FrameId
HRESULT get_FrameId(UINT32* id)

The unique identifier of the frame associated with the current FrameInfo. It's the same kind of ID as with the FrameId in CoreWebView2 and via CoreWebView2Frame. FrameId will only be populated (non-zero) when obtained calling CoreWebView2ProcessExtendedInfo.AssociatedFrameInfos. CoreWebView2FrameInfo objects obtained via CoreWebView2.ProcessFailed will always have an invalid frame Id 0. Note that this FrameId could be out of date as it's a snapshot. If there's WebView2 created or destroyed or FrameCreated/FrameDestroyed events after the asynchronous call CoreWebView2Environment.GetProcessExtendedInfos starts, you may want to call asynchronous method again to get the updated FrameInfos.

get_FrameKind
HRESULT get_FrameKind(COREWEBVIEW2_FRAME_KIND* kind)

The frame kind of the frame. FrameKind will only be populated when obtained calling CoreWebView2ProcessExtendedInfo.AssociatedFrameInfos. CoreWebView2FrameInfo objects obtained via CoreWebView2.ProcessFailed will always have the default value COREWEBVIEW2_FRAME_KIND_UNKNOWN. Note that this FrameKind could be out of date as it's a snapshot.

get_ParentFrameInfo
HRESULT get_ParentFrameInfo(ICoreWebView2FrameInfo* frameInfo)

This parent frame's FrameInfo. ParentFrameInfo will only be populated when obtained via calling CoreWebView2ProcessExtendedInfo.AssociatedFrameInfos. CoreWebView2FrameInfo objects obtained via CoreWebView2.ProcessFailed will always have a null ParentFrameInfo. This property is also null for the main frame in the WebView2 which has no parent frame. Note that this ParentFrameInfo could be out of date as it's a snapshot.

Inherited Members

From ICoreWebView2FrameInfo

get_Name
HRESULT get_Name(LPWSTR* name)

The name attribute of the frame, as in <iframe name="frame-name" ...>. The returned string is empty when the frame has no name attribute.

get_Source
HRESULT get_Source(LPWSTR* source)

The URI of the document in the frame.

Meta