Class HistoryUpdatedEventArgs
- Namespace
- WebDriverBiDi.BrowsingContext
- Assembly
- WebDriverBiDi.dll
Object containing event data for the browsingContext.historyUpdated event.
public record HistoryUpdatedEventArgs : WebDriverBiDiEventArgs, IEquatable<WebDriverBiDiEventArgs>, IEquatable<HistoryUpdatedEventArgs>
- Inheritance
-
HistoryUpdatedEventArgs
- Implements
- Inherited Members
Constructors
HistoryUpdatedEventArgs(string, string)
Initializes a new instance of the HistoryUpdatedEventArgs class.
[JsonConstructor]
public HistoryUpdatedEventArgs(string browsingContextId, string url)
Parameters
browsingContextIdstringThe ID of the browsing context corresponding to the history item.
urlstringThe URL of the history item.
HistoryUpdatedEventArgs(HistoryUpdatedEventArgs)
protected HistoryUpdatedEventArgs(HistoryUpdatedEventArgs original)
Parameters
originalHistoryUpdatedEventArgs
Properties
BrowsingContextId
Gets the ID of the browsing context in the history entry.
[JsonPropertyName("context")]
[JsonRequired]
[JsonInclude]
public string BrowsingContextId { get; }
Property Value
EpochTimestamp
Gets the timestamp as the total number of milliseconds elapsed since the start of the Unix epoch (1 January 1970 12:00AM UTC).
[JsonPropertyName("timestamp")]
[JsonRequired]
[JsonInclude]
public ulong EpochTimestamp { get; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Timestamp
Gets the timestamp of the history update in UTC.
[JsonIgnore]
public DateTime Timestamp { get; }
Property Value
Url
Gets the URL of the history entry.
[JsonPropertyName("url")]
[JsonRequired]
[JsonInclude]
public string Url { get; }
Property Value
UserContextId
Gets the ID of the user context where the history was updated.
[JsonPropertyName("userContext")]
[JsonInclude]
public string? UserContextId { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(HistoryUpdatedEventArgs?)
public virtual bool Equals(HistoryUpdatedEventArgs? other)
Parameters
otherHistoryUpdatedEventArgs
Returns
Equals(WebDriverBiDiEventArgs?)
public override sealed bool Equals(WebDriverBiDiEventArgs? other)
Parameters
otherWebDriverBiDiEventArgs
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(HistoryUpdatedEventArgs?, HistoryUpdatedEventArgs?)
public static bool operator ==(HistoryUpdatedEventArgs? left, HistoryUpdatedEventArgs? right)
Parameters
leftHistoryUpdatedEventArgsrightHistoryUpdatedEventArgs
Returns
operator !=(HistoryUpdatedEventArgs?, HistoryUpdatedEventArgs?)
public static bool operator !=(HistoryUpdatedEventArgs? left, HistoryUpdatedEventArgs? right)
Parameters
leftHistoryUpdatedEventArgsrightHistoryUpdatedEventArgs