PackageProviderAttribute
Namespace: AnyPackage.Provider
Identifies a class as a package provider.
public sealed class PackageProviderAttribute : System.Attribute
Inheritance Object → Attribute → PackageProviderAttribute
Properties
Name
Gets the provider name.
public string Name { get; }
Property Value
FileExtensions
Gets or sets the supported file extensions.
public String[] FileExtensions { get; set; }
Property Value
UriSchemes
Gets or sets the supported Uri schemes.
public String[] UriSchemes { get; set; }
Property Value
PackageByName
Gets if the provider supports the Name
parameter set.
public bool PackageByName { get; set; }
Property Value
Remarks:
Used for providers that use Path
parameter set. Used for the following cmdlets: Find-Package, Install-Package, Update-Package
TypeId
public object TypeId { get; }
Property Value
Constructors
PackageProviderAttribute(String)
Constructor for the package provider attribute.
public PackageProviderAttribute(string name)
Parameters
name
String
The provider name.