PackageIdentity element

Specifies the package identity (name and publisher) for the Windows Store device app that is specified as an AutoPlay handler.

Usage

<PackageIdentity
  Name = "tns:PackageNameType"
  Publisher = "tns:PublisherType"/>

Attributes

AttributeTypeRequiredDescription

Name

tns:PackageNameType

Yes

A value of PackageNameType. Copy this element from the Name attribute of the app manifest's Identity element, described in Remarks.

Publisher

tns:PublisherType

Yes

A value of PublisherType. Copy this element from the Publisher attribute of the app manifest's Identity element, described in Remarks.

Child elements

There are no child elements.

Parent elements

Element

AutoplayHandler

XSD


<!-- Package Identity Type Definition -->
<xs:complexType name="PackageIdentityType">
    <xs:attribute name="Name" type="tns:PackageNameType" use="required" />
    <xs:attribute name="Publisher" type="tns:PublisherType" use="required" />
</xs:complexType>

Remarks

The structure for the <package> element's <identity> and <applications> element correspond to the structure of those elements in an app manifest. Copy the Name and Publisher attributes from the application manifest's <identity> element after the app has been associated with the Windows Store, because the process of associating your app will update the app manifest. See Step 2: Create device metadata for your Windows Store device app for more information on associating the app with the store.

Here is an example of how the <Identity> element may look inside an app manifest.

<Identity Name="64022FABRIKAM.FabrikamDeviceApp" Publisher="CN=05558413-FFF6-4AA5-8176-AD43036533FA" Version="1.0.0.0" />

You can see the Package name and publisher in Microsoft Visual Studio 2012 by following these steps:

  1. Open your app solution in Visual Studio 2012.
  2. If you have not done so already, associate your app with the Windows Store using the steps in Step 2: Create device metadata for your Windows Store device app.
  3. Double-click Package.appxmanifest in Solution Explorer to open the app manifest designer.
  4. In the manifest designer, click on the Packaging tab.
  5. In the Packaging tab, you can find the Package Name field and the Publisher field.

You can see the App ID in Visual Studio 2012 by following these steps:

  1. Open your app solution in Visual Studio 2012.
  2. Right-click Package.appxmanifest in Solution Explorer and choose View Code.
  3. You can see the Application element's Id attribute in the app manifest code.

Element information

Minimum supported system

Windows 8
Can be emptyYes

See also

AutoplayHandler
PackageNameType
PublisherType

 

 

Send comments about this topic to Microsoft

Show: