PackageId PackageId PackageId PackageId Class

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

Syntax

Declaration

public sealed class PackageIdpublic sealed class PackageIdPublic NotInheritable Class PackageIdpublic sealed class PackageId

Remarks

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

Properties summary

Gets the processor architecture for which the package was created.

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

Gets the family name of the package.

Gets the full name of the package.

Gets the name of the package.

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

Gets the publisher of the package.

Gets the publisher ID of the package.

Gets the resource ID of the package.

Gets the package version info.

Properties

  • Architecture
    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 ProcessorArchitecturepublic ProcessorArchitecture Architecture { get; }

    Property Value

  • Author
    Author
    Author
    Author

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

    public string Author { get; }public string Author { get; }Public ReadOnly Property Author As stringpublic string Author { get; }

    Property Value

    • string
      string
      string
      string

      The value of the Author attribute the specified application package.

  • FamilyName
    FamilyName
    FamilyName
    FamilyName

    Gets the family name of the package.

    public string FamilyName { get; }public string FamilyName { get; }Public ReadOnly Property FamilyName As stringpublic string FamilyName { get; }

    Property Value

    • string
      string
      string
      string

      The family name.

  • FullName
    FullName
    FullName
    FullName

    Gets the full name of the package.

    public string FullName { get; }public string FullName { get; }Public ReadOnly Property FullName As stringpublic string FullName { get; }

    Property Value

    • string
      string
      string
      string

      The full name.

  • Name
    Name
    Name
    Name

    Gets the name of the package.

    public string Name { get; }public string Name { get; }Public ReadOnly Property Name As stringpublic string Name { get; }

    Property Value

    • string
      string
      string
      string

      The package name.

  • ProductId
    ProductId
    ProductId
    ProductId

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

    public string ProductId { get; }public string ProductId { get; }Public ReadOnly Property ProductId As stringpublic string ProductId { get; }

    Property Value

    • string
      string
      string
      string

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

  • Publisher
    Publisher
    Publisher
    Publisher

    Gets the publisher of the package.

    public string Publisher { get; }public string Publisher { get; }Public ReadOnly Property Publisher As stringpublic string Publisher { get; }

    Property Value

    • string
      string
      string
      string

      The publisher.

  • PublisherId
    PublisherId
    PublisherId
    PublisherId

    Gets the publisher ID of the package.

    public string PublisherId { get; }public string PublisherId { get; }Public ReadOnly Property PublisherId As stringpublic string PublisherId { get; }

    Property Value

    • string
      string
      string
      string

      The publisher ID.

  • ResourceId
    ResourceId
    ResourceId
    ResourceId

    Gets the resource ID of the package.

    public string ResourceId { get; }public string ResourceId { get; }Public ReadOnly Property ResourceId As stringpublic string ResourceId { get; }

    Property Value

    • string
      string
      string
      string

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

  • Version
    Version
    Version
    Version

    Gets the package version info.

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

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.ApplicationModel.dll