Table of Contents

Class CoreWebView2FrameInfo

Namespace
Microsoft.Web.WebView2.Core
Assembly
Microsoft.Web.WebView2.Core.dll

Provides a set of properties for a frame in the CoreWebView2.

public class CoreWebView2FrameInfo
Inheritance
CoreWebView2FrameInfo
Inherited Members

Properties

FrameId

The unique identifier of the frame associated with the current CoreWebView2FrameInfo. It's the same kind of ID as with the FrameId and FrameId. FrameId will only be populated when obtained calling AssociatedFrameInfos. CoreWebView2FrameInfo objects obtained via ProcessFailed will always have an invalid frame Id 0.

public uint FrameId { get; }

Property Value

uint

Remarks

FrameId could be out of date as it's a snapshot. If there's CoreWebView2 created or destroyed or FrameCreated event or Destroyed event after the asynchronous call GetProcessExtendedInfosAsync() starts, you may want to call the asynchronous method again to get the updated CoreWebView2FrameInfo s.

FrameKind

Gets the kind of the frame. FrameKind will only be populated when obtained calling AssociatedFrameInfos. CoreWebView2FrameInfo` objects obtained via ProcessFailed will always have the default value Unknown.

public CoreWebView2FrameKind FrameKind { get; }

Property Value

CoreWebView2FrameKind

Remarks

FrameKind could be out of date as it's a snapshot.

Name

Gets the value of frame's window.name property. The default value equals to frame html tag declaring it, as in <iframe name="frame-name" ...>.

public string Name { get; }

Property Value

string

Remarks

The returned string is empty when the frame has no name attribute and no assigned value for window.name.

ParentFrameInfo

This parent frame's CoreWebView2FrameInfo. ParentFrameInfo will only be populated when obtained via calling AssociatedFrameInfos. CoreWebView2FrameInfo objects obtained via ProcessFailed will always have a null ParentFrameInfo. This property is also null for the top most document in the CoreWebView2 which has no parent frame.

public CoreWebView2FrameInfo ParentFrameInfo { get; }

Property Value

CoreWebView2FrameInfo

Remarks

ParentFrameInfo could be out of date as it's a snapshot.

Source

The URI of the document in the frame.

public string Source { get; }

Property Value

string