SourceRequest
Namespace: AnyPackage.Provider
The SourceRequest
class is used to send information to the package provider.
public sealed class SourceRequest : Request
Inheritance Object → Request → SourceRequest
Properties
Name
Gets the package source name.
public string Name { get; internal set; }
Property Value
Location
Gets the package source location.
public string Location { get; internal set; }
Property Value
Trusted
Gets if the package source is trusted.
public Nullable<bool> Trusted { get; internal set; }
Property Value
Force
Gets if the source should be overwritten.
public Nullable<bool> Force { get; internal set; }
Property Value
Source
Gets the package source if passed in via InputObject
parameter.
public PackageSourceInfo Source { get; internal set; }
Property Value
DynamicParameters
Gets the package provider dynamic parameters.
public object DynamicParameters { get; internal set; }
Property Value
ParameterSetName
Gets the parameter set name.
public string ParameterSetName { get; }
Property Value
Stopping
Gets if the package provider has been requested to stop.
public bool Stopping { get; }
Property Value
ProviderInfo
Gets the package provider information.
public PackageProviderInfo ProviderInfo { get; internal set; }
Property Value
Methods
IsMatch(String)
Checks if the name satisfies the request.
public bool IsMatch(string name)
Parameters
name
String
Specifies the name.
Returns
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.