Table of Contents

Class AutoPlayEvent

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

A specific AutoPlay event such as "Audio CD inserted".

[Serializable]
[Equatable]
public class AutoPlayEvent : XmlUnknown, IEquatable<XmlUnknown>, ICloneable<AutoPlayEvent>, IEquatable<AutoPlayEvent>
Inheritance
AutoPlayEvent
Implements
Inherited Members

Fields

NameBurnBluRay

Canonical Name.

public const string NameBurnBluRay = "HandleBDBurningOnArrival"

Field Value

string

NameBurnCD

Canonical Name.

public const string NameBurnCD = "HandleCDBurningOnArrival"

Field Value

string

NameBurnDvd

Canonical Name.

public const string NameBurnDvd = "HandleDVDBurningOnArrival"

Field Value

string

NamePlayBluRay

Canonical Name.

public const string NamePlayBluRay = "PlayBluRayOnArrival"

Field Value

string

NamePlayCDAudio

Canonical Name.

public const string NamePlayCDAudio = "PlayCDAudioOnArrival"

Field Value

string

NamePlayDvdAudioO

Canonical Name.

public const string NamePlayDvdAudioO = "PlayDVDAudioOnArrival"

Field Value

string

NamePlayDvdMovie

Canonical Name.

public const string NamePlayDvdMovie = "PlayDVDMovieOnArrival"

Field Value

string

NamePlayMusicFiles

Canonical Name.

public const string NamePlayMusicFiles = "PlayMusicFilesOnArrival"

Field Value

string

NamePlaySuperVideoCDMovie

Canonical Name.

public const string NamePlaySuperVideoCDMovie = "PlaySuperVideoCDMovieOnArrival"

Field Value

string

NamePlayVideoCDMovie

Canonical Name.

public const string NamePlayVideoCDMovie = "PlayVideoCDMovieOnArrival"

Field Value

string

NamePlayVideoFiles

Canonical Name.

public const string NamePlayVideoFiles = "PlayVideoFilesOnArrival"

Field Value

string

Properties

Name

The name of the event. May only contain alphanumeric characters, spaces ( ), dots (.), underscores (_), hyphens (-) and plus signs (+).

public required string Name { get; set; }

Property Value

string

Methods

Clone()

Creates a deep copy of this AutoPlayEvent instance.

public AutoPlayEvent Clone()

Returns

AutoPlayEvent

The new copy of the AutoPlayEvent.

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.

Equals(AutoPlayEvent?)

protected bool Equals(AutoPlayEvent? other)

Parameters

other AutoPlayEvent

Returns

bool

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 void Normalize()

Exceptions

InvalidDataException

A required property is not set or invalid.

ToString()

Returns the event in the form "Name". Not safe for parsing!

public override string ToString()

Returns

string

Operators

operator ==(AutoPlayEvent?, AutoPlayEvent?)

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

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

Parameters

left AutoPlayEvent

The left object

right AutoPlayEvent

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(AutoPlayEvent?, AutoPlayEvent?)

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

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

Parameters

left AutoPlayEvent

The left object

right AutoPlayEvent

The right object

Returns

bool

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