Class VerbCapability
- Namespace
- ZeroInstall.Model.Capabilities
- Assembly
- ZeroInstall.Model.dll
Abstract base class for capabilities that can have multiple Verbs.
public abstract class VerbCapability : IconCapability, ICloneable<Capability>, IEquatable<Capability>, IEquatable<DefaultCapability>, IIconContainer, IDescriptionContainer, IEquatable<IconCapability>, IEquatable<VerbCapability>
- Inheritance
-
objectVerbCapability
- Implements
- Derived
- Inherited Members
Constructors
VerbCapability()
protected VerbCapability()
Properties
Verbs
A list of all available operations for the element.
[Browsable(false)]
public List<Verb> Verbs { get; }
Property Value
Methods
CloneFromTo(VerbCapability, VerbCapability)
Copies all members declared by VerbCapability from one instance to another.
protected static void CloneFromTo(VerbCapability from, VerbCapability to)
Parameters
fromVerbCapabilitytoVerbCapability
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(VerbCapability?)
protected bool Equals(VerbCapability? other)
Parameters
otherVerbCapability
Returns
GetHashCode()
public override int GetHashCode()
Returns
Normalize()
Converts legacy elements, sets default values, etc..
public override void Normalize()
Exceptions
- InvalidDataException
A required property is not set or invalid.
Operators
operator ==(VerbCapability?, VerbCapability?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(VerbCapability? left, VerbCapability? right)
Parameters
leftVerbCapabilityThe left object
rightVerbCapabilityThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(VerbCapability?, VerbCapability?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(VerbCapability? left, VerbCapability? right)
Parameters
leftVerbCapabilityThe left object
rightVerbCapabilityThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.