Table of Contents

Class WebExtensionMatchPattern

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class WebExtensionMatchPattern : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<WebExtensionMatchPattern>, IDisposable
Inheritance
WebExtensionMatchPattern
Implements
Inherited Members

Constructors

WebExtensionMatchPattern(WebExtensionMatchPatternOwnedHandle)

public WebExtensionMatchPattern(WebExtensionMatchPatternOwnedHandle handle)

Parameters

handle WebExtensionMatchPatternOwnedHandle

Properties

Handle

public WebExtensionMatchPatternOwnedHandle Handle { get; }

Property Value

WebExtensionMatchPatternOwnedHandle

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(WebExtensionMatchPattern?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(WebExtensionMatchPattern? other)

Parameters

other WebExtensionMatchPattern

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetHost()

[Version("2.48")]
public string GetHost()

Returns

string

GetMatchesAllHosts()

[Version("2.48")]
public bool GetMatchesAllHosts()

Returns

bool

GetMatchesAllUrls()

[Version("2.48")]
public bool GetMatchesAllUrls()

Returns

bool

GetPath()

[Version("2.48")]
public string GetPath()

Returns

string

GetScheme()

[Version("2.48")]
public string GetScheme()

Returns

string

GetString()

[Version("2.48")]
public string GetString()

Returns

string

MatchesPattern(WebExtensionMatchPattern, WebExtensionMatchPatternOptions)

[Version("2.48")]
public bool MatchesPattern(WebExtensionMatchPattern pattern, WebExtensionMatchPatternOptions options)

Parameters

pattern WebExtensionMatchPattern
options WebExtensionMatchPatternOptions

Returns

bool

MatchesUrl(string, WebExtensionMatchPatternOptions)

[Version("2.48")]
public bool MatchesUrl(string url, WebExtensionMatchPatternOptions options)

Parameters

url string
options WebExtensionMatchPatternOptions

Returns

bool

NewAllHostsAndSchemes()

[Version("2.48")]
public static WebExtensionMatchPattern NewAllHostsAndSchemes()

Returns

WebExtensionMatchPattern

NewAllUrls()

[Version("2.48")]
public static WebExtensionMatchPattern NewAllUrls()

Returns

WebExtensionMatchPattern

NewWithScheme(string, string, string)

[Version("2.48")]
public static WebExtensionMatchPattern? NewWithScheme(string scheme, string host, string path)

Parameters

scheme string
host string
path string

Returns

WebExtensionMatchPattern

NewWithString(string)

[Version("2.48")]
public static WebExtensionMatchPattern? NewWithString(string @string)

Parameters

string string

Returns

WebExtensionMatchPattern

Ref()

[Version("2.48")]
public WebExtensionMatchPattern Ref()

Returns

WebExtensionMatchPattern

RegisterCustomURLScheme(string)

[Version("2.48")]
public static void RegisterCustomURLScheme(string urlScheme)

Parameters

urlScheme string

Unref()

[Version("2.48")]
public void Unref()