CoreWebView2ProcessInfo.AssociatedFrameInfos Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

C#
public System.Collections.Generic.IReadOnlyList<Microsoft.Web.WebView2.Core.CoreWebView2FrameInfo> AssociatedFrameInfos { get; }

Property Value

Examples

C#
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

Product Versions
WebView2 .NET Prerelease 1.0.1988, 1.0.2065, 1.0.2106, 1.0.2164, 1.0.2194, 1.0.2357, 1.0.2415, 1.0.2470, 1.0.2526, 1.0.2584, 1.0.2646, 1.0.2730, 1.0.2783, 1.0.2839