Class BrowserExtension
- Namespace
- ZeroInstall.Model.Capabilities
- Assembly
- ZeroInstall.Model.dll
A browser extension.
public class BrowserExtension : XmlUnknown, ICloneable<BrowserExtension>, IEquatable<BrowserExtension>
- Inheritance
-
objectBrowserExtension
- Implements
- Inherited Members
Constructors
BrowserExtension()
public BrowserExtension()
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 virtual BrowserExtension Clone()
Returns
- BrowserExtension
The new copy of the BrowserExtension.
CloneFromTo(BrowserExtension, BrowserExtension)
Copies all members declared by BrowserExtension from one instance to another.
protected static void CloneFromTo(BrowserExtension from, BrowserExtension to)
Parameters
fromBrowserExtensiontoBrowserExtension
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BrowserExtension?)
protected bool Equals(BrowserExtension? other)
Parameters
otherBrowserExtension
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
leftBrowserExtensionThe left object
rightBrowserExtensionThe 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
leftBrowserExtensionThe left object
rightBrowserExtensionThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.