Table of Contents

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.

public abstract class DefaultCapability : Capability, ICloneable<Capability>, IEquatable<Capability>, IEquatable<DefaultCapability>
Inheritance
object
DefaultCapability
Implements
Derived
Inherited Members

Constructors

DefaultCapability()

protected DefaultCapability()

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

bool

Remarks

Use this to exclude exotic capabilities from default integration categories.

Methods

CloneFromTo(DefaultCapability, DefaultCapability)

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

protected static void CloneFromTo(DefaultCapability from, DefaultCapability to)

Parameters

from DefaultCapability
to DefaultCapability

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(DefaultCapability?)

protected bool Equals(DefaultCapability? other)

Parameters

other DefaultCapability

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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 DefaultCapability

The left object

right DefaultCapability

The 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 DefaultCapability

The left object

right DefaultCapability

The right object

Returns

bool

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