PackageId Class

Definition

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

public ref class PackageId sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PackageId final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PackageId
Public NotInheritable Class PackageId
Inheritance
Object IInspectable PackageId
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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

Properties

Architecture

Gets the processor architecture for which the package was created.

Author

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

FamilyName

Gets the family name of the package.

FullName

Gets the full name of the package.

Name

Gets the name of the package.

ProductId

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

Publisher

Gets the publisher of the package.

PublisherId

Gets the publisher ID of the package.

ResourceId

Gets the resource ID of the package.

Version

Gets the package version info.

Applies to

See also