PackageProviderInfo

Namespace: AnyPackage.Provider

This class contains information about a package provider.

public class PackageProviderInfo

Inheritance ObjectPackageProviderInfo

Properties

Name

Gets the name of a provider.

public string Name { get; }

Property Value

String

ImplementingType

Gets the provider type.

public Type ImplementingType { get; }

Property Value

Type

Id

Gets the provider identifier.

public Guid Id { get; }

Property Value

Guid

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

String

FullName

Gets the provider full name.

public string FullName { get; }

Property Value

String

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

Version

Operations

Gets the package operations the provider supports.

public PackageProviderOperations Operations { get; }

Property Value

PackageProviderOperations

Priority

Gets and sets the package provider priority.

public byte Priority { get; set; }

Property Value

Byte

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

Boolean

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

Boolean

PackageByUri

Gets if the package provider support package by uri parameter set.

public bool PackageByUri { get; }

Property Value

Boolean

FileExtensions

Gets supported file extensions.

public IEnumerable<string> FileExtensions { get; }

Property Value

IEnumerable<String>

UriSchemes

Gets supported Uri schemes.

public IEnumerable<string> UriSchemes { get; }

Property Value

IEnumerable<String>

Methods

ToString()

Returns provider name.

public string ToString()

Returns

String

CreateInstance()

internal PackageProvider CreateInstance()

Returns

PackageProvider

HasOperation(PackageProviderOperations)

internal bool HasOperation(PackageProviderOperations operations)

Parameters

operations PackageProviderOperations

Returns

Boolean

IsMatch(String)

internal bool IsMatch(string name)

Parameters

name String

Returns

Boolean