Compartilhar via


CoreWebView2ProcessInfo.AssociatedFrameInfos Property

Definition

Provides the collection of associated CoreWebView2FrameInfos which are actively running (showing 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 obtained via calling GetProcessInfosWithDetailsAsync() and when this CoreWebView2ProcessInfo corresponds to a renderer process. CoreWebView2ProcessInfo objects obtained via GetProcessInfos() or for non-renderer processes will always have an empty AssociatedFrameInfo. AssociatedFrameInfos may also be empty for renderer processes that have no active frames.

Applies to