SourceRequest

Namespace: AnyPackage.Provider

The SourceRequest class is used to send information to the package provider.

public sealed class SourceRequest : Request

Inheritance ObjectRequestSourceRequest

Properties

Name

Gets the package source name.

public string Name { get; internal set; }

Property Value

String

Location

Gets the package source location.

public string Location { get; internal set; }

Property Value

String

Trusted

Gets if the package source is trusted.

public Nullable<bool> Trusted { get; internal set; }

Property Value

Nullable<Boolean>

Force

Gets if the source should be overwritten.

public Nullable<bool> Force { get; internal set; }

Property Value

Nullable<Boolean>

Source

Gets the package source if passed in via InputObject parameter.

public PackageSourceInfo Source { get; internal set; }

Property Value

PackageSourceInfo

DynamicParameters

Gets the package provider dynamic parameters.

public object DynamicParameters { get; internal set; }

Property Value

Object

ParameterSetName

Gets the parameter set name.

public string ParameterSetName { get; }

Property Value

String

Stopping

Gets if the package provider has been requested to stop.

public bool Stopping { get; }

Property Value

Boolean

ProviderInfo

Gets the package provider information.

public PackageProviderInfo ProviderInfo { get; internal set; }

Property Value

PackageProviderInfo

Methods

IsMatch(String)

Checks if the name satisfies the request.

public bool IsMatch(string name)

Parameters

name String
Specifies the name.

Returns

Boolean

        Returns true if the name is a wildcard match to the request.

Remarks:

Case is ignored during comparison.

WriteSource(PackageSourceInfo)

Writes the package source to the pipeline.

public void WriteSource(PackageSourceInfo source)

Parameters

source PackageSourceInfo
The package source.