Class RemoveHook
- Namespace
- ZeroInstall.Model.Capabilities
- Assembly
- ZeroInstall.Model.dll
A hook/callback into the application to be called during 0install remove.
public sealed class RemoveHook : Capability, ICloneable<Capability>, IEquatable<Capability>, IEquatable<RemoveHook>
- Inheritance
-
objectRemoveHook
- Implements
- Inherited Members
Constructors
RemoveHook()
public RemoveHook()
Properties
Arguments
Command-line arguments to be passed to the command. Will be automatically escaped to allow proper concatenation of multiple arguments containing spaces.
[Browsable(false)]
public List<Arg> Arguments { get; }
Property Value
Command
The name of the command in the Feed to use when a removal of the app is requested; leave null for NameRun.
[TypeConverter(typeof(CommandNameConverter))]
public string? Command { get; set; }
Property Value
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)]
public override IEnumerable<string> ConflictIDs { get; }
Property Value
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.
Methods
Clone()
Creates a deep copy of this instance.
public override Capability Clone()
Returns
CloneRemoveHook()
Creates a deep copy of this RemoveHook instance.
public RemoveHook CloneRemoveHook()
Returns
- RemoveHook
The new copy of the RemoveHook.
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
Returns the capability in the form "Command". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(RemoveHook?, RemoveHook?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(RemoveHook? left, RemoveHook? right)
Parameters
leftRemoveHookThe left object
rightRemoveHookThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(RemoveHook?, RemoveHook?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(RemoveHook? left, RemoveHook? right)
Parameters
leftRemoveHookThe left object
rightRemoveHookThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.