Class PackageMeta
Metadata for a Package accessible from PackageMeta.
[DataContract("PackageMeta")]
public sealed class PackageMeta
- Inheritance
-
PackageMeta
Constructors
PackageMeta()
Initializes a new instance of the PackageMeta class.
public PackageMeta()
Properties
Authors
Gets the authors.
[DataMember(40)]
public List<string> Authors { get; }
Property Value
Copyright
Gets or sets the copyright.
[DataMember(150)]
public string Copyright { get; set; }
Property Value
- string
The copyright.
Dependencies
Gets the package dependencies.
[DataMember(160)]
public PackageDependencyCollection Dependencies { get; }
Property Value
- PackageDependencyCollection
The package dependencies.
Description
Gets or sets the description of this package.
[DataMember(100)]
public string Description { get; set; }
Property Value
- string
The description.
DownloadCount
Gets the download count. Only valid for store packages.
public long DownloadCount { get; }
Property Value
- long
The download count.
IconUrl
Gets or sets the icon URL.
[DataMember(60)]
public Uri IconUrl { get; set; }
Property Value
- Uri
The icon URL.
Language
Gets or sets the language supported by this package.
[DataMember(130)]
public string Language { get; set; }
Property Value
- string
The language.
LicenseUrl
Gets or sets the license URL.
[DataMember(70)]
public Uri LicenseUrl { get; set; }
Property Value
- Uri
The license URL.
Listed
Gets a value indicating whether this PackageMeta is listed.
public bool Listed { get; }
Property Value
- bool
true
if listed; otherwise,false
.
Name
Gets or sets the identifier name of this package.
[DataMember(10)]
public string Name { get; set; }
Property Value
- string
The name.
Owners
Gets the owners.
[DataMember(50)]
public List<string> Owners { get; }
Property Value
ProjectUrl
Gets or sets the project URL.
[DataMember(80)]
public Uri ProjectUrl { get; set; }
Property Value
- Uri
The project URL.
Published
Gets the published time.
public DateTimeOffset? Published { get; }
Property Value
- DateTimeOffset?
The published.
ReleaseNotes
Gets or sets the release notes of this package.
[DataMember(120)]
public string ReleaseNotes { get; set; }
Property Value
- string
The release notes.
ReportAbuseUrl
Gets the report abuse URL. Only valid for store packages.
public Uri ReportAbuseUrl { get; }
Property Value
- Uri
The report abuse URL.
RequireLicenseAcceptance
Gets or sets a value indicating whether it requires license acceptance.
[DataMember(90)]
public bool RequireLicenseAcceptance { get; set; }
Property Value
- bool
true
if it requires license acceptance; otherwise,false
.
RootNamespace
Gets or sets the default namespace for this package.
[DataMember(155)]
public string RootNamespace { get; set; }
Property Value
- string
The default namespace.
Summary
Gets or sets the summary of this package.
[DataMember(110)]
public string Summary { get; set; }
Property Value
- string
The summary.
Tags
Gets or sets the tags associated to this package.
[DataMember(140)]
public string Tags { get; set; }
Property Value
- string
The tags.
Title
Gets or sets the title.
[DataMember(30)]
public string Title { get; set; }
Property Value
- string
The title.
Version
Gets or sets the version of this package.
[DataMember(20)]
public PackageVersion Version { get; set; }
Property Value
- PackageVersion
The version.
Methods
NewDefault(string)
Creates a new PackageMeta with default values.
public static PackageMeta NewDefault(string packageName)
Parameters
packageName
stringName of the package.
Returns
- PackageMeta
PackageMeta.
Exceptions
- ArgumentNullException
packageName