Class DefaultCapability
- Namespace
- ZeroInstall.Model.Capabilities
- Assembly
- ZeroInstall.Model.dll
Abstract base class for capabilities that can be applied as default handlers for something at the user's request.
[Equatable]
public abstract class DefaultCapability : Capability, IEquatable<XmlUnknown>, ICloneable<Capability>, IEquatable<Capability>, IEquatable<DefaultCapability>
- Inheritance
-
DefaultCapability
- Implements
- Derived
- Inherited Members
Properties
ExplicitOnly
When set to true
this capability is not applied as a default handler without explicit confirmation from the user.
public bool ExplicitOnly { get; set; }
Property Value
Remarks
Use this to exclude exotic capabilities from default integration categories.
Methods
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(DefaultCapability?)
protected bool Equals(DefaultCapability? other)
Parameters
other
DefaultCapability
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(DefaultCapability?, DefaultCapability?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(DefaultCapability? left, DefaultCapability? right)
Parameters
left
DefaultCapabilityThe left object
right
DefaultCapabilityThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(DefaultCapability?, DefaultCapability?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(DefaultCapability? left, DefaultCapability? right)
Parameters
left
DefaultCapabilityThe left object
right
DefaultCapabilityThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.