Class WindowOpenEventArgs
Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.
public sealed record WindowOpenEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<WindowOpenEventArgs>
- Inheritance
-
EventArgsWindowOpenEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
WindowOpenEventArgs(string, string, ImmutableArray<string>, bool)
Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.
public WindowOpenEventArgs(string Url, string WindowName, ImmutableArray<string> WindowFeatures, bool UserGesture)
Parameters
UrlstringThe URL for the new window.
WindowNamestringWindow name.
WindowFeaturesImmutableArray<string>An array of enabled window features.
UserGestureboolWhether or not it was triggered by user gesture.
Properties
Url
The URL for the new window.
public string Url { get; init; }
Property Value
UserGesture
Whether or not it was triggered by user gesture.
public bool UserGesture { get; init; }
Property Value
WindowFeatures
An array of enabled window features.
public ImmutableArray<string> WindowFeatures { get; init; }
Property Value
WindowName
Window name.
public string WindowName { get; init; }