Zero Install .NET API 2.20.0
ZeroInstall.Model.Capabilities.AutoPlayEvent Class Reference

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

Inheritance diagram for ZeroInstall.Model.Capabilities.AutoPlayEvent:
ZeroInstall.Model.XmlUnknown NanoByte.Common.ICloneable< AutoPlayEvent >

Public Member Functions

void Normalize ()
 Converts legacy elements, sets default values, etc.. More...
 
override string ToString ()
 Returns the event in the form "Name". Not safe for parsing!
 
AutoPlayEvent Clone ()
 Creates a deep copy of this AutoPlayEvent instance. More...
 
bool Equals (AutoPlayEvent? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from ZeroInstall.Model.XmlUnknown
string ToShortXml ()
 Returns a shortened XML representation (with attributes but without child elements). More...
 
override int GetHashCode ()
 
- Public Member Functions inherited from NanoByte.Common.ICloneable< AutoPlayEvent >
AutoPlayEvent Clone ()
 

Static Public Attributes

const string NamePlayCDAudio = "PlayCDAudioOnArrival"
 Canonical Name.
 
const string NamePlayDvdAudioO = "PlayDVDAudioOnArrival"
 
const string NamePlayMusicFiles = "PlayMusicFilesOnArrival"
 
const string NamePlayVideoCDMovie = "PlayVideoCDMovieOnArrival"
 
const string NamePlaySuperVideoCDMovie = "PlaySuperVideoCDMovieOnArrival"
 
const string NamePlayDvdMovie = "PlayDVDMovieOnArrival"
 
const string NamePlayBluRay = "PlayBluRayOnArrival"
 
const string NamePlayVideoFiles = "PlayVideoFilesOnArrival"
 
const string NameBurnCD = "HandleCDBurningOnArrival"
 
const string NameBurnDvd = "HandleDVDBurningOnArrival"
 
const string NameBurnBluRay = "HandleBDBurningOnArrival"
 

Properties

string Name = default! [getset]
 The name of the event. May only contain alphanumeric characters, spaces ( ), dots (.), underscores (_), hyphens (-) and plus signs (+).
 

Additional Inherited Members

- Public Attributes inherited from ZeroInstall.Model.XmlUnknown
XmlAttribute?[] UnknownAttributes
 Contains any unknown additional XML attributes.
 
XmlElement?[] UnknownElements
 Contains any unknown additional XML elements.
 
- Protected Member Functions inherited from ZeroInstall.Model.XmlUnknown
void EnsureAttribute (object? value, string attributeName)
 Ensures that a value deserialized from an XML attribute is set (not null). More...
 
void EnsureAttributeSafeID (string? value, string attributeName)
 Ensures that a value deserialized from an XML attribute is set (not null) and only contains alphanumeric characters, spaces ( ), dots (.), underscores (_), hyphens (-) and plus signs (+). More...
 
bool Equals (XmlUnknown? other)
 

Detailed Description

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

Member Function Documentation

◆ Clone()

AutoPlayEvent ZeroInstall.Model.Capabilities.AutoPlayEvent.Clone ( )

Creates a deep copy of this AutoPlayEvent instance.

Returns
The new copy of the AutoPlayEvent.

◆ Normalize()

void ZeroInstall.Model.Capabilities.AutoPlayEvent.Normalize ( )

Converts legacy elements, sets default values, etc..

Exceptions
InvalidDataExceptionA required property is not set or invalid.

The documentation for this class was generated from the following file: