Table of Contents

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
object
VerbCapability
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

List<Verb>

Methods

CloneFromTo(VerbCapability, VerbCapability)

Copies all members declared by VerbCapability from one instance to another.

protected static void CloneFromTo(VerbCapability from, VerbCapability to)

Parameters

from VerbCapability
to VerbCapability

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(VerbCapability?)

protected bool Equals(VerbCapability? other)

Parameters

other VerbCapability

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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

left VerbCapability

The left object

right VerbCapability

The 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

left VerbCapability

The left object

right VerbCapability

The right object

Returns

bool

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