Class TargetInfo
public sealed record TargetInfo : IEquatable<TargetInfo>
- Inheritance
-
TargetInfo
- Implements
- Inherited Members
Constructors
TargetInfo(TargetID, string, string, string, bool, bool)
public TargetInfo(TargetID TargetId, string Type, string Title, string Url, bool Attached, bool CanAccessOpener)
Parameters
TargetIdTargetIDTypestringList of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22
TitlestringUrlstringAttachedboolWhether the target has an attached client.
CanAccessOpenerboolWhether the target has access to the originating window.
Properties
Attached
Whether the target has an attached client.
public bool Attached { get; init; }
Property Value
BrowserContextId
public BrowserContextID? BrowserContextId { get; init; }
Property Value
CanAccessOpener
Whether the target has access to the originating window.
public bool CanAccessOpener { get; init; }
Property Value
EmbedderData
Embedder-specific target metadata. This is only set for targets of type "tab".
public JsonElement? EmbedderData { get; init; }
Property Value
OpenerFrameId
Frame id of originating window (is only set if target has an opener).
public FrameId? OpenerFrameId { get; init; }
Property Value
OpenerId
Opener target Id
public TargetID? OpenerId { get; init; }
Property Value
ParentFrameId
Id of the parent frame, present for "iframe" and "worker" targets. For nested workers, this is the "ancestor" frame that created the first worker in the nested chain.
public FrameId? ParentFrameId { get; init; }
Property Value
ParentId
Id of the parent target, if any. For example, "iframe" target may have a "page" parent.
public TargetID? ParentId { get; init; }
Property Value
Subtype
Provides additional details for specific target types. For example, for the type of "page", this may be set to "prerender".
public string? Subtype { get; init; }
Property Value
TargetId
public TargetID TargetId { get; init; }
Property Value
Title
public string Title { get; init; }
Property Value
Type
List of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22
public string Type { get; init; }
Property Value
Url
public string Url { get; init; }