Table of Contents

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

string

Name

The name of the menu entry, icon, command-line, etc..

public string? Name { get; set; }

Property Value

string

Methods

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.

Equals(CommandAccessPoint?)

protected bool Equals(CommandAccessPoint? other)

Parameters

other CommandAccessPoint

Returns

bool

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

string

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 CommandAccessPoint

The left object

right CommandAccessPoint

The 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 CommandAccessPoint

The left object

right CommandAccessPoint

The right object

Returns

bool

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

See Also