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
PowerShellType
The types of PowerShell supported by the script.
public PowerShellType PowerShellType { get; set; }
Property Value
Methods
CreateCommand()
Creates a Command to launch this entry point.
public override Command CreateCommand()
Returns
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
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
PowerShellScriptThe left object
right
PowerShellScriptThe 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
PowerShellScriptThe left object
right
PowerShellScriptThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.