Table of Contents

Class OverlayBinding

Namespace
ZeroInstall.Model
Assembly
ZeroInstall.Model.dll

Make a chosen Implementation available by overlaying it onto another part of the file-system.

[Serializable]
[Equatable]
public sealed class OverlayBinding : Binding, IEquatable<XmlUnknown>, IEquatable<FeedElement>, ICloneable<Binding>, IEquatable<OverlayBinding>
Inheritance
OverlayBinding
Implements
Inherited Members

Remarks

This is to support legacy programs which use hard-coded paths.

Properties

MountPoint

The mount point on which src is to appear in the filesystem. If missing, '/' (on POSIX) or '%systemdrive%' (on Windows) is assumed.

public string? MountPoint { get; set; }

Property Value

string

Source

The relative path of the directory in the implementation to publish. The default is to publish everything.

public string? Source { get; set; }

Property Value

string

Methods

Clone()

Creates a deep copy of this OverlayBinding instance.

public override Binding Clone()

Returns

Binding

The new copy of the OverlayBinding.

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.

ToString()

Returns the binding in the form "Source => MountPoint". Not safe for parsing!

public override string ToString()

Returns

string

Operators

operator ==(OverlayBinding?, OverlayBinding?)

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

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

Parameters

left OverlayBinding

The left object

right OverlayBinding

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(OverlayBinding?, OverlayBinding?)

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

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

Parameters

left OverlayBinding

The left object

right OverlayBinding

The right object

Returns

bool

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