PackageProviderAttribute

Namespace: AnyPackage.Provider

Identifies a class as a package provider.

public sealed class PackageProviderAttribute : System.Attribute

Inheritance ObjectAttributePackageProviderAttribute

Properties

Name

Gets the provider name.

public string Name { get; }

Property Value

String

FileExtensions

Gets or sets the supported file extensions.

public String[] FileExtensions { get; set; }

Property Value

String[]

UriSchemes

Gets or sets the supported Uri schemes.

public String[] UriSchemes { get; set; }

Property Value

String[]

PackageByName

Gets if the provider supports the Name parameter set.

public bool PackageByName { get; set; }

Property Value

Boolean

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

Object

Constructors

PackageProviderAttribute(String)

Constructor for the package provider attribute.

public PackageProviderAttribute(string name)

Parameters

name String
The provider name.