PackageInfo

Namespace: AnyPackage.Provider

The PackageInfo class.

public sealed class PackageInfo

Inheritance ObjectPackageInfo

Properties

Name

Gets the package name.

public string Name { get; }

Property Value

String

Version

Gets the package version.

public PackageVersion Version { get; }

Property Value

PackageVersion

Description

Gets the package description.

public string Description { get; }

Property Value

String

Source

Gets the package source.

public PackageSourceInfo Source { get; }

Property Value

PackageSourceInfo

Metadata

Gets additional metadata about the package.

public IReadOnlyDictionary<string, object> Metadata { get; }

Property Value

IReadOnlyDictionary<String, Object>

Provider

Gets the package provider.

public PackageProviderInfo Provider { get; }

Property Value

PackageProviderInfo

Dependencies

Gets package dependencies.

public IEnumerable<PackageDependency> Dependencies { get; }

Property Value

IEnumerable<PackageDependency>

Constructors

PackageInfo(String, PackageProviderInfo)

Instantiates a PackageInfo object.

public PackageInfo(string name, PackageProviderInfo provider)

Parameters

name String
Package name.

provider PackageProviderInfo
Package provider info.

PackageInfo(String, PackageVersion, PackageProviderInfo)

Instantiates a PackageInfo object.

public PackageInfo(string name, PackageVersion version, PackageProviderInfo provider)

Parameters

name String
Package name.

version PackageVersion
Package version.

provider PackageProviderInfo
Package provider info.

PackageInfo(String, PackageVersion, String, PackageProviderInfo)

Instantiates a PackageInfo object.

public PackageInfo(string name, PackageVersion version, string description, PackageProviderInfo provider)

Parameters

name String
Package name.

version PackageVersion
Package version.

description String
Package description.

provider PackageProviderInfo
Package provider info.

PackageInfo(String, PackageVersion, PackageSourceInfo, PackageProviderInfo)

Instantiates a PackageInfo object.

public PackageInfo(string name, PackageVersion version, PackageSourceInfo source, PackageProviderInfo provider)

Parameters

name String
Package name.

version PackageVersion
Package version.

source PackageSourceInfo
Package source.

provider PackageProviderInfo
Package provider info.

PackageInfo(String, PackageVersion, PackageSourceInfo, String, PackageProviderInfo)

Instantiates a PackageInfo object.

public PackageInfo(string name, PackageVersion version, PackageSourceInfo source, string description, PackageProviderInfo provider)

Parameters

name String
Package name.

version PackageVersion
Package version.

source PackageSourceInfo
Package source.

description String
Package description.

provider PackageProviderInfo
Package provider info.

PackageInfo(String, PackageVersion, PackageSourceInfo, String, IEnumerable<PackageDependency>, PackageProviderInfo)

Instantiates a PackageInfo object.

public PackageInfo(string name, PackageVersion version, PackageSourceInfo source, string description, IEnumerable<PackageDependency> dependencies, PackageProviderInfo provider)

Parameters

name String
Package name.

version PackageVersion
Package version.

source PackageSourceInfo
Package source.

description String
Package description.

dependencies IEnumerable<PackageDependency>
Package dependencies.

provider PackageProviderInfo
Package provider info.

PackageInfo(String, PackageVersion, PackageSourceInfo, String, IEnumerable<PackageDependency>, IDictionary<String, Object>, PackageProviderInfo)

Instantiates a PackageInfo object.

public PackageInfo(string name, PackageVersion version, PackageSourceInfo source, string description, IEnumerable<PackageDependency> dependencies, IDictionary<string, object> metadata, PackageProviderInfo provider)

Parameters

name String
Package name.

version PackageVersion
Package version.

source PackageSourceInfo
Package source.

description String
Package description.

dependencies IEnumerable<PackageDependency>
Package dependencies.

metadata IDictionary<String, Object>
Additional package metadata.

provider PackageProviderInfo
Package provider info.

PackageInfo(String, PackageVersion, PackageSourceInfo, String, IEnumerable<PackageDependency>, Hashtable, PackageProviderInfo)

Instantiates a PackageInfo object.

public PackageInfo(string name, PackageVersion version, PackageSourceInfo source, string description, IEnumerable<PackageDependency> dependencies, Hashtable metadata, PackageProviderInfo provider)

Parameters

name String
Package name.

version PackageVersion
Package version.

source PackageSourceInfo
Package source.

description String
Package description.

dependencies IEnumerable<PackageDependency>
Package dependencies.

metadata Hashtable
Additional package metadata.

provider PackageProviderInfo
Package provider info.

Methods

ToString()

Returns a string of the package name.

public string ToString()

Returns

String

        The package name.