Class CommandAccessPoint
- Namespace
- ZeroInstall.DesktopIntegration.AccessPoints
- Assembly
- ZeroInstall.DesktopIntegration.dll
Adds a way to explicitly launch the application to the desktop environment.
[Equatable]
public abstract class CommandAccessPoint : AccessPoint, IEquatable<XmlUnknown>, ICloneable<AccessPoint>, IEquatable<CommandAccessPoint>
- Inheritance
-
CommandAccessPoint
- Implements
- Derived
- Inherited Members
Properties
Command
The name of the Command to use when launching via this access point. Leave empty to use default.
public string? Command { get; set; }
Property Value
Name
The name of the menu entry, icon, command-line, etc..
public string? Name { get; set; }
Property Value
Methods
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(CommandAccessPoint?)
protected bool Equals(CommandAccessPoint? other)
Parameters
other
CommandAccessPoint
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns the access point in the form "AccessPointType: Name (Command)". Not safe for parsing!
public override string ToString()
Returns
ValidateName()
Ensures that the given name can be used as a file name.
protected void ValidateName()
Exceptions
- IOException
Name contains invalid characters.
Operators
operator ==(CommandAccessPoint?, CommandAccessPoint?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(CommandAccessPoint? left, CommandAccessPoint? right)
Parameters
left
CommandAccessPointThe left object
right
CommandAccessPointThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(CommandAccessPoint?, CommandAccessPoint?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(CommandAccessPoint? left, CommandAccessPoint? right)
Parameters
left
CommandAccessPointThe left object
right
CommandAccessPointThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.