Table of Contents

Class AppRegistration

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

Indicates that an application should be listed in the "Set your Default Programs" UI (Windows Vista and later).

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

Remarks

The actual integration information is pulled from the other Capabilitys.

Properties

CapabilityRegPath

The registry path relative to HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE which should be used to store the application's capability registration information.

public required string CapabilityRegPath { get; set; }

Property Value

string

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.

WindowsMachineWideOnly

Indicates whether this capability can be registered only machine-wide and not per-user on Windows systems.

public override bool WindowsMachineWideOnly { get; }

Property Value

bool

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 "CapabilityRegPath". Not safe for parsing!

public override string ToString()

Returns

string

Operators

operator ==(AppRegistration?, AppRegistration?)

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

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

Parameters

left AppRegistration

The left object

right AppRegistration

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(AppRegistration?, AppRegistration?)

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

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

Parameters

left AppRegistration

The left object

right AppRegistration

The right object

Returns

bool

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