InstallPackageCommand
Namespace: AnyPackage.Commands
The Install-Package command.
public sealed class InstallPackageCommand : AnyPackage.Commands.Internal.PackageCommandBase, System.Management.Automation.IDynamicParameters
Inheritance Object → InternalCommand → Cmdlet → PSCmdlet → CommandBase → PackageCommandBase → InstallPackageCommand
Implements IDynamicParameters
Properties
Name
Gets or sets the name(s).
public String[] Name { get; set; }
Property Value
Version
Gets or sets the version of the packages to retrieve.
public PackageVersionRange Version { get; set; }
Property Value
Remarks:
Accepts NuGet version range syntax.
Source
Gets or sets the source.
public string Source { get; set; }
Property Value
Prerelease
Gets or sets if prerelease versions should be included.
public SwitchParameter Prerelease { get; set; }
Property Value
SwitchParameter
PassThru
Gets or sets if the command should pass objects through.
public SwitchParameter PassThru { get; set; }
Property Value
SwitchParameter
TrustSource
Gets or sets an untrusted source to trusted for this execution.
public SwitchParameter TrustSource { get; set; }
Property Value
SwitchParameter
Provider
Gets or sets the provider.
public string Provider { get; set; }
Property Value
InputObject
Gets or sets package(s).
public PackageInfo[] InputObject { get; set; }
Property Value
Path
Gets or sets the package path(s).
public String[] Path { get; set; }
Property Value
LiteralPath
Gets or sets the package path(s).
public String[] LiteralPath { get; set; }
Property Value
Uri
Gets or sets the package Uri(s).
public Uri[] Uri { get; set; }
Property Value
Uri[]
Events
public PSEventManager Events { get; }
Property Value
PSEventManager
Host
public PSHost Host { get; }
Property Value
PSHost
InvokeCommand
public CommandInvocationIntrinsics InvokeCommand { get; }
Property Value
CommandInvocationIntrinsics
InvokeProvider
public ProviderIntrinsics InvokeProvider { get; }
Property Value
ProviderIntrinsics
JobManager
public JobManager JobManager { get; }
Property Value
JobManager
JobRepository
public JobRepository JobRepository { get; }
Property Value
JobRepository
MyInvocation
public InvocationInfo MyInvocation { get; }
Property Value
InvocationInfo
PagingParameters
public PagingParameters PagingParameters { get; }
Property Value
PagingParameters
ParameterSetName
public string ParameterSetName { get; }
Property Value
SessionState
public SessionState SessionState { get; }
Property Value
SessionState
CommandRuntime
public ICommandRuntime CommandRuntime { get; set; }
Property Value
ICommandRuntime
Stopping
public bool Stopping { get; }
Property Value
CommandOrigin
public CommandOrigin CommandOrigin { get; }
Property Value
CommandOrigin
Constructors
InstallPackageCommand()
Instantiates the InstallPackageCommand
class.
public InstallPackageCommand()
Methods
ProcessRecord()
Processes input.
protected void ProcessRecord()
SetRequest()
Sets the request property.
protected void SetRequest()