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.
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.