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
Methods
Clone()
Creates a deep copy of this BrowserExtension instance.
public BrowserExtension Clone()
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(BrowserExtension?)
protected bool Equals(BrowserExtension? other)
Parameters
other
BrowserExtension
Returns
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
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
BrowserExtensionThe left object
right
BrowserExtensionThe 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
BrowserExtensionThe left object
right
BrowserExtensionThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.