PackageDependency
Namespace: AnyPackage.Provider
The PackageDependency
class. Contains information about package dependency requirements.
public sealed class PackageDependency
Inheritance Object → PackageDependency
Properties
Name
Gets the package name.
public string Name { get; }
Property Value
VersionRange
Gets the version range.
public PackageVersionRange VersionRange { get; }
Property Value
Provider
Gets the package provider.
public PackageProviderInfo Provider { get; }
Property Value
Remarks:
If null the current provider should be used.
Constructors
PackageDependency(String)
Constructs a new instance of the PackageDependency
class.
public PackageDependency(string name)
Parameters
name
String
Package name.
PackageDependency(String, PackageVersionRange)
Constructs a new instance of the PackageDependency
class.
public PackageDependency(string name, PackageVersionRange versionRange)
Parameters
name
String
Package name.
versionRange
PackageVersionRange
Version range.
PackageDependency(String, PackageProviderInfo)
Constructs a new instance of the PackageDependency
class.
public PackageDependency(string name, PackageProviderInfo provider)
Parameters
name
String
Package name.
provider
PackageProviderInfo
Package provider.
PackageDependency(String, PackageVersionRange, PackageProviderInfo)
Constructs a new instance of the PackageDependency
class.
public PackageDependency(string name, PackageVersionRange versionRange, PackageProviderInfo provider)
Parameters
name
String
Package name.
versionRange
PackageVersionRange
Version range.
provider
PackageProviderInfo
Package provider.
Methods
ToString()
Returns a string of the package name.
public string ToString()
Returns
The package name.