Table of Contents

Class AutoPlay

Namespace
ZeroInstall.Model.Capabilities
Assembly
ZeroInstall.Model.dll

An application's ability to handle one or more AutoPlay events.

[Serializable]
[Equatable]
public sealed class AutoPlay : IconCapability, IEquatable<XmlUnknown>, ICloneable<Capability>, IEquatable<Capability>, IEquatable<DefaultCapability>, IIconContainer, IDescriptionContainer, IEquatable<IconCapability>, IEquatable<AutoPlay>
Inheritance
AutoPlay
Implements
Inherited Members

Properties

ConflictIDs

Identifiers from a namespace global to all Capabilitys. Collisions in this namespace indicate that the concerned Capabilitys are in conflict cannot be registered on a single system at the same time.

[Browsable(false)]
[IgnoreEquality]
public override IEnumerable<string> ConflictIDs { get; }

Property Value

IEnumerable<string>

Remarks

These identifiers are not guaranteed to stay the same between versions. They should not be stored in files but instead always generated on demand.

Events

The IDs of the events this action can handle.

[Browsable(false)]
[OrderedEquality]
public List<AutoPlayEvent> Events { get; }

Property Value

List<AutoPlayEvent>

Provider

The name of the application as shown in the AutoPlay selection list.

public required string Provider { get; set; }

Property Value

string

Verb

The command to execute when the handler gets called.

[Browsable(false)]
public required Verb Verb { get; set; }

Property Value

Verb

Methods

Clone()

Creates a deep copy of this Capability instance.

public override Capability Clone()

Returns

Capability

The new copy of the Capability.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Normalize()

Converts legacy elements, sets default values, etc..

public override void Normalize()

Exceptions

InvalidDataException

A required property is not set or invalid.

ToString()

Returns the capability in the form "ID". Not safe for parsing!

public override string ToString()

Returns

string

Operators

operator ==(AutoPlay?, AutoPlay?)

Indicates whether the object on the left is equal to the object on the right.

public static bool operator ==(AutoPlay? left, AutoPlay? right)

Parameters

left AutoPlay

The left object

right AutoPlay

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(AutoPlay?, AutoPlay?)

Indicates whether the object on the left is not equal to the object on the right.

public static bool operator !=(AutoPlay? left, AutoPlay? right)

Parameters

left AutoPlay

The left object

right AutoPlay

The right object

Returns

bool

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