Table of Contents

Class PowerShellScript

Namespace
ZeroInstall.Publish.EntryPoints
Assembly
ZeroInstall.Publish.dll

A script written in PowerShell.

[Equatable]
public sealed class PowerShellScript : InterpretedScript, IEquatable<Candidate>, IEquatable<InterpretedScript>, IEquatable<PowerShellScript>
Inheritance
PowerShellScript
Implements
Inherited Members

Properties

InterpreterInterface

The interface URI of the interpreter to run the script.

protected override FeedUri InterpreterInterface { get; }

Property Value

FeedUri

PowerShellType

The types of PowerShell supported by the script.

public PowerShellType PowerShellType { get; set; }

Property Value

PowerShellType

Methods

CreateCommand()

Creates a Command to launch this entry point.

public override Command CreateCommand()

Returns

Command

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.

Operators

operator ==(PowerShellScript?, PowerShellScript?)

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

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

Parameters

left PowerShellScript

The left object

right PowerShellScript

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(PowerShellScript?, PowerShellScript?)

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

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

Parameters

left PowerShellScript

The left object

right PowerShellScript

The right object

Returns

bool

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