ProtocolHandlerRegistration Class

A request of a page to register a protocol handler (navigator.registerProtocolHandler()).

public sealed class ProtocolHandlerRegistration : IEquatable<ProtocolHandlerRegistration>
Implements

Constructors

NameDescription
ProtocolHandlerRegistration(Document, string, string)A request of a page to register a protocol handler (navigator.registerProtocolHandler()).

ProtocolHandlerRegistration(Document, string, string)

ProtocolHandlers.cs

A request of a page to register a protocol handler (navigator.registerProtocolHandler()).

public ProtocolHandlerRegistration(Document Document, string Scheme, string Url)

Parameters

Document Document
The document that requests the registration.
Scheme string
The normalized scheme (lowercase, e.g. mailto or web+soup).
Url string
The normalized URL of the handler: an absolute http: or https: URL that contains %s.

Properties

NameDescription
DocumentThe document that requests the registration.
SchemeThe normalized scheme (lowercase, e.g. mailto or web+soup).
UrlThe normalized URL of the handler: an absolute http: or https: URL that contains %s.

The document that requests the registration.

public Document Document { get; init; }

Property value

Document

The normalized scheme (lowercase, e.g. mailto or web+soup).

public string Scheme { get; init; }

Property value

string

The normalized URL of the handler: an absolute http: or https: URL that contains %s.

public string Url { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(Document, string, string)
Equals(ProtocolHandlerRegistration?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(Document, string, string)

public void Deconstruct(out Document Document, out string Scheme, out string Url)

Parameters

Document Document
Scheme string
Url string

No documentation is available.

Equals overloads

Equals(ProtocolHandlerRegistration?)

public bool Equals(ProtocolHandlerRegistration? other)
Parameters
other ProtocolHandlerRegistration?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ProtocolHandlerRegistration?, ProtocolHandlerRegistration?)
operator !=(ProtocolHandlerRegistration?, ProtocolHandlerRegistration?)

operator ==(ProtocolHandlerRegistration?, ProtocolHandlerRegistration?)

public static bool operator ==(ProtocolHandlerRegistration? left, ProtocolHandlerRegistration? right)

No documentation is available.

operator !=(ProtocolHandlerRegistration?, ProtocolHandlerRegistration?)

public static bool operator !=(ProtocolHandlerRegistration? left, ProtocolHandlerRegistration? right)

No documentation is available.