GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PackageProvider Instance

PackageProvider Instance

Jump to bottom Edit New page
Garrett Serack edited this page May 19, 2014 · 5 revisions

PackageProvider Instance class

The PackageProvider Instance is returned from a call to the [PackageManagementService] .

public class PackageProvider {

    public IEnumerable<PackageSource> GetPackageSources(Callback c);
	public void AddPackageSource(string name, string location, bool trusted, Callback c);
	public void RemovePackageSource(string name, Callback c);
	public bool IsValidPackageSource(string packageSource, Callback c);
	public bool IsTrustedPackageSource(string packageSource, Callback c);

	public IEnumerable<SoftwareIdentity> FindPackage(string name, string requiredVersion, string minimumVersion, string maximumVersion, int id, Callback c);
 	public IEnumerable<SoftwareIdentity> FindPackageByUri(Uri u, int id, Callback c);
	public IEnumerable<SoftwareIdentity> FindPackageByFile(string filename, int id, Callback c);

	public IEnumerable<SoftwareIdentity> FindPackages(string[] names, string requiredVersion, string minimumVersion, string maximumVersion, Callback c);
 	public IEnumerable<SoftwareIdentity> FindPackageByUris(Uri[] uris, Callback c);
	public IEnumerable<SoftwareIdentity> FindPackageByFiles(string[] filenames,  Callback c);
	
	public int StartFind(Callback c);
	public IEnumerable<SoftwareIdentity> EndFind(int id, Callback c);

	public IEnumerable<SoftwareIdentity> GetPackageDependencies(string fastPath, Callback c);
	public IEnumerable<SoftwareIdentity> GetInstalledPackages(string name, Callback c);

	public IEnumerable<SoftwareIdentity> InstallPackage(SoftwareIdentity softwareIdentity, Callback c);
	public IEnumerable<SoftwareIdentity> UninstallPackage(SoftwareIdentity softwareIdentity, Callback c);
	public bool DownloadPackage(SoftwareIdentity softwareIdentity, string location, Callback c);
	

	public IEnumerable<OptionDefinition> GetDynamicOptions(OptionCategory operation, Callback c);
	public IEnumerable<string> Features {get;}
	
    public IEnumerable<string> SupportedUriSchemes { get; }
    public IEnumerable<string> SupportedFileExtensions{ get; } 


	public bool IsMethodSupported(PackageProviderApi api);
}

PowerShell consumers should pass the $request object as the value for the callback parameter.

Property Type Description
`` `` .
Add a custom footer

Concepts

  • News Panel
  • Q and A
  • Provider Requests
  • cmdlets
  • ImplementingPackageProvider
  • How to submit your provider
  • General Troubleshooting
  • Provider assembly search locations

Archive

  • 8 Laws of Software Installation
  • DynamicOption PowerShell
  • InstallationStatus
  • Notes from the Weekly Meeting (Apr 11,2014)
  • OptionCategory
  • OptionType
  • PackageManagementService
  • PackageProvider Instance
  • PackageProvider Interface
  • PackageSource PowerShell
  • Request PowerShell
  • SoftwareIdentity PowerShell

Clone this wiki locally

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.