CoreWebView2ProcessExtendedInfo.AssociatedFrameInfos Property

Definition

Provides the collection of associated CoreWebView2FrameInfos which are actively running (showing or hiding UI elements) in this renderer process.

public System.Collections.Generic.IReadOnlyList<Microsoft.Web.WebView2.Core.CoreWebView2FrameInfo> AssociatedFrameInfos { get; }
member this.AssociatedFrameInfos : System.Collections.Generic.IReadOnlyList<Microsoft.Web.WebView2.Core.CoreWebView2FrameInfo>
Public ReadOnly Property AssociatedFrameInfos As IReadOnlyList(Of CoreWebView2FrameInfo)

Property Value

Examples

IReadOnlyList<CoreWebView2FrameInfo> frameInfoList = processList[i].AssociatedFrameInfos;
foreach (CoreWebView2FrameInfo frameInfo in frameInfoList)
{
    frameInfoCount++;
    frameInfos += AppendFrameInfo(frameInfo);
}

Remarks

AssociatedFrameInfos will only be populated when this CoreWebView2ProcessExtendedInfo corresponds to a renderer process. Non-renderer processes will always have an empty AssociatedFrameInfo. AssociatedFrameInfos may also be empty for renderer processes that have no active frames.

Applies to