SetPackageSourceCommand

Namespace: AnyPackage.Commands

The Set-PackageSource command.

public sealed class SetPackageSourceCommand : AnyPackage.Commands.Internal.SourceCommandBase, System.Management.Automation.IDynamicParameters

Inheritance Object → InternalCommand → Cmdlet → PSCmdlet → CommandBaseSourceCommandBaseSetPackageSourceCommand
Implements IDynamicParameters

Properties

Name

Gets or sets the source name.

public string Name { get; set; }

Property Value

String

Location

Gets or sets the source location.

public string Location { get; set; }

Property Value

String

Provider

Gets or sets the provider.

public string Provider { get; set; }

Property Value

String

Trusted

Gets or sets if the source is trusted.

public SwitchParameter Trusted { get; set; }

Property Value

SwitchParameter

PassThru

Gets or sets if the command should pass objects through.

public SwitchParameter PassThru { get; set; }

Property Value

SwitchParameter

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

String

SessionState

public SessionState SessionState { get; }

Property Value

SessionState

CommandRuntime

public ICommandRuntime CommandRuntime { get; set; }

Property Value

ICommandRuntime

Stopping

public bool Stopping { get; }

Property Value

Boolean

CommandOrigin

public CommandOrigin CommandOrigin { get; }

Property Value

CommandOrigin

Constructors

SetPackageSourceCommand()

Instantiates the SetPackageSource class.

public SetPackageSourceCommand()

Methods

ProcessRecord()

Processes input.

protected void ProcessRecord()

SetRequest()

Sets the request property.

protected void SetRequest()