Package​Id Package​Id Package​Id Class

Definition

Provides package identification info, such as name, version, and publisher.

public sealed class PackageId : IPackageId, IPackageIdWithMetadatapublic sealed class PackageId : IPackageId, IPackageIdWithMetadataPublic NotInheritable Class PackageId Implements IPackageId, IPackageIdWithMetadata
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Use the Package.Current | current property to get the package for the current app.

Properties

Architecture Architecture Architecture

Gets the processor architecture for which the package was created.

public ProcessorArchitecture Architecture { get; }public ProcessorArchitecture Architecture { get; }Public ReadOnly Property Architecture As ProcessorArchitecture
Attributes
See Also

Author Author Author

Windows Phone only. Gets the value of the Author attribute for the specified application package.

public PlatForm::String Author { get; }public string Author { get; }Public ReadOnly Property Author As string
Value
string string string

The value of the Author attribute for the specified application package.

Attributes

FamilyName FamilyName FamilyName

Gets the family name of the package.

public PlatForm::String FamilyName { get; }public string FamilyName { get; }Public ReadOnly Property FamilyName As string
Value
string string string

The family name.

Attributes
See Also

FullName FullName FullName

Gets the full name of the package.

public PlatForm::String FullName { get; }public string FullName { get; }Public ReadOnly Property FullName As string
Value
string string string

The full name.

Attributes
See Also

Name Name Name

Gets the name of the package.

public PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string
Value
string string string

The package name.

Attributes
See Also

ProductId ProductId ProductId

Windows Phone only. Gets the value of the ProductID attribute associated with this XAP application package.

public PlatForm::String ProductId { get; }public string ProductId { get; }Public ReadOnly Property ProductId As string
Value
string string string

The value of the ProductID attribute associated with this XAP application package.

Attributes

Publisher Publisher Publisher

Gets the publisher of the package.

public PlatForm::String Publisher { get; }public string Publisher { get; }Public ReadOnly Property Publisher As string
Value
string string string

The publisher.

Attributes
See Also

PublisherId PublisherId PublisherId

Gets the publisher ID of the package.

public PlatForm::String PublisherId { get; }public string PublisherId { get; }Public ReadOnly Property PublisherId As string
Value
string string string

The publisher ID.

Attributes
See Also

ResourceId ResourceId ResourceId

Gets the resource ID of the package.

public PlatForm::String ResourceId { get; }public string ResourceId { get; }Public ReadOnly Property ResourceId As string
Value
string string string

The resource ID. If there is no resource ID for the package, this property is null.

Attributes
See Also

Version Version Version

Gets the package version info.

public PackageVersion Version { get; }public PackageVersion Version { get; }Public ReadOnly Property Version As PackageVersion
Value
PackageVersion PackageVersion PackageVersion

The package version information.

Attributes
See Also

See Also