Extensions (package schema for Windows 8, child of Package)

Defines one or more extensibility points for the package.

Element hierarchy

<Package>
<Extensions>

Syntax

<Extensions>

  <!-- Child elements -->
  Extension{1,10000}

</Extensions>

Key

{}   specific range of occurrences

Attributes and Elements

Attributes

None.

Child Elements

Child Element Description
Extension (in type: CT_PackageExtensions)

Declares an extensibility point for the package.

 

Parent Elements

Parent Element Description
Package

Defines the root element of an app package manifest. The manifest describes the structure and capabilities of the software to the system.

 

The following elements have the same name as this one, but different content or attributes:

Remarks

Extensibility points are a mechanism by which an app can add functionality in a manner defined by the operating system. An example of a package extensibility point is the ability to specify a dynamic-link library or executable that contains activatable classes that your code uses.

Examples

The following example is taken from the package manifest of one of the SDK samples.

<Package>
  <Extensions>
    <Extension Category="windows.activatableClass.proxyStub">
      <ProxyStub ClassId="332fd2f1-1c69-4c91-949e-4bb67a85bdc5">
        <Path>Microsoft.Samples.DllServerAuthoring.Proxies.dll</Path>
        <Interface Name="IToaster" InterfaceId="6a112353-4f87-4460-a908-2944e92686f3" />
        <Interface Name="IToast" InterfaceId="699b1394-3ceb-4a14-ae23-efec518b088b" />
        <Interface Name="IAppliance" InterfaceId="332fd2f1-1c69-4c91-949e-4bb67a85bdc5" />
      </ProxyStub>
    </Extension>
    <Extension Category="windows.activatableClass.inProcessServer">
      <InProcessServer>
        <Path>Microsoft.Samples.DllServerAuthoring.dll</Path>
        <ActivatableClass ActivatableClassId="Microsoft.Samples.DllServerAuthoring.Toaster" ThreadingModel="both" />
      </InProcessServer>
    </Extension>
  </Extensions>
</Package>

See also

Concepts App contracts and extensions

Requirements

Value
Namespace http://schemas.microsoft.com/appx/2010/manifest