PackageProviderInfo
Namespace: AnyPackage.Provider
This class contains information about a package provider.
public class PackageProviderInfo
Inheritance Object → PackageProviderInfo
Properties
Name
Gets the name of a provider.
public string Name { get; }
Property Value
ImplementingType
Gets the provider type.
public Type ImplementingType { get; }
Property Value
Id
Gets the provider identifier.
public Guid Id { get; }
Property Value
Module
Gets the package provider PowerShell module information.
public PSModuleInfo Module { get; }
Property Value
PSModuleInfo
ModuleName
Gets the package provider PowerShell module.
public string ModuleName { get; }
Property Value
FullName
Gets the provider full name.
public string FullName { get; }
Property Value
Remarks:
The provider full name is the module name and provider name. For example, AnyPackage\NuGet If the module name is null returns the provider name.
Version
Gets the package provider version using the module’s version.
public Version Version { get; }
Property Value
Operations
Gets the package operations the provider supports.
public PackageProviderOperations Operations { get; }
Property Value
Priority
Gets and sets the package provider priority.
public byte Priority { get; set; }
Property Value
Remarks:
Lower the number the higher the priority.
PackageByName
Gets if the package provider supports package by name parameter set.
public bool PackageByName { get; }
Property Value
Remarks:
If false
package provider doesn’t support Name
parameter set for the following cmdlets: Find-Package, Install-Package, Update-Package
PackageByFile
Gets if the package provider supports package by path parameter set.
public bool PackageByFile { get; }
Property Value
PackageByUri
Gets if the package provider support package by uri parameter set.
public bool PackageByUri { get; }
Property Value
FileExtensions
Gets supported file extensions.
public IEnumerable<string> FileExtensions { get; }
Property Value
UriSchemes
Gets supported Uri schemes.
public IEnumerable<string> UriSchemes { get; }
Property Value
Methods
ToString()
Returns provider name.
public string ToString()
Returns
CreateInstance()
internal PackageProvider CreateInstance()
Returns
HasOperation(PackageProviderOperations)
internal bool HasOperation(PackageProviderOperations operations)
Parameters
operations
PackageProviderOperations
Returns
IsMatch(String)
internal bool IsMatch(string name)
Parameters
name
String