SourceCommandBase

Namespace: AnyPackage.Commands.Internal

The base class for source commands.

public abstract class SourceCommandBase : CommandBase, System.Management.Automation.IDynamicParameters

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

Properties

Provider

Gets or sets the package provider.

public abstract string Provider { get; set; }

Property Value

String

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

Methods

SetRequest()

Sets the request property.

protected void SetRequest()

SetRequest(String, String, Nullable<Boolean>, Nullable<Boolean>)

Sets the request property.

protected void SetRequest(string name, string location, Nullable<bool> trusted, Nullable<bool> force)

Parameters

name String
Specifies the source name.

location String
Specifies the source location.

trusted Nullable<Boolean>
Specifies if the source is trusted.

force Nullable<Boolean>
Specifies if an existing source should be overwritten.