Table of Contents

Class BrowserExtension

Namespace
ZeroInstall.Model.Capabilities
Assembly
ZeroInstall.Model.dll

A browser extension.

[Serializable]
[Equatable]
public class BrowserExtension : XmlUnknown, IEquatable<XmlUnknown>, ICloneable<BrowserExtension>, IEquatable<BrowserExtension>
Inheritance
BrowserExtension
Implements
Inherited Members

Properties

ID

The ID of the browser extension, without prefixes like chrome-extension://.

public required string ID { get; set; }

Property Value

string

Methods

Clone()

Creates a deep copy of this BrowserExtension instance.

public BrowserExtension Clone()

Returns

BrowserExtension

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(BrowserExtension?)

protected bool Equals(BrowserExtension? other)

Parameters

other BrowserExtension

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Normalize()

Converts legacy elements, sets default values, etc..

public void Normalize()

Exceptions

InvalidDataException

A required property is not set or invalid.

ToString()

Returns the extension in the form "ID". Not safe for parsing!

public override string ToString()

Returns

string

Operators

operator ==(BrowserExtension?, BrowserExtension?)

Indicates whether the object on the left is equal to the object on the right.

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

Parameters

left BrowserExtension

The left object

right BrowserExtension

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(BrowserExtension?, BrowserExtension?)

Indicates whether the object on the left is not equal to the object on the right.

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

Parameters

left BrowserExtension

The left object

right BrowserExtension

The right object

Returns

bool

true if the objects are not equal; otherwise, false.