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
NameBurnCD
Canonical Name.
public const string NameBurnCD = "HandleCDBurningOnArrival"
Field Value
NameBurnDvd
Canonical Name.
public const string NameBurnDvd = "HandleDVDBurningOnArrival"
Field Value
NamePlayBluRay
Canonical Name.
public const string NamePlayBluRay = "PlayBluRayOnArrival"
Field Value
NamePlayCDAudio
Canonical Name.
public const string NamePlayCDAudio = "PlayCDAudioOnArrival"
Field Value
NamePlayDvdAudioO
Canonical Name.
public const string NamePlayDvdAudioO = "PlayDVDAudioOnArrival"
Field Value
NamePlayDvdMovie
Canonical Name.
public const string NamePlayDvdMovie = "PlayDVDMovieOnArrival"
Field Value
NamePlayMusicFiles
Canonical Name.
public const string NamePlayMusicFiles = "PlayMusicFilesOnArrival"
Field Value
NamePlaySuperVideoCDMovie
Canonical Name.
public const string NamePlaySuperVideoCDMovie = "PlaySuperVideoCDMovieOnArrival"
Field Value
NamePlayVideoCDMovie
Canonical Name.
public const string NamePlayVideoCDMovie = "PlayVideoCDMovieOnArrival"
Field Value
NamePlayVideoFiles
Canonical Name.
public const string NamePlayVideoFiles = "PlayVideoFilesOnArrival"
Field Value
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
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
objectThe object to compare with the current object.
Returns
Equals(AutoPlayEvent?)
protected bool Equals(AutoPlayEvent? other)
Parameters
other
AutoPlayEvent
Returns
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
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
AutoPlayEventThe left object
right
AutoPlayEventThe 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
AutoPlayEventThe left object
right
AutoPlayEventThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.