Extensions
Recolher sumário
Expandir sumário

Extensions (type: CT_ApplicationExtensions)

Defines one or more extensibility points for the app.

Hierarquia de elementos

<Package>
<Applications>
<Application>
<Extensions>

Sintaxe

<Extensions>

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

</Extensions>

Chave

{}   intervalo específico de ocorrências

Attributes and Elements

Attributes

None.

Child Elements

Child ElementDescription
Extension (in type: CT_ApplicationExtensions)

Declares an extensibility point for the app.

 

Parent Elements

Parent ElementDescription
Application

Represents an app that comprises part of or all of the functionality delivered in the package.

 

Elementos relacionados

Os seguintes elementos têm o mesmo nome que este, mas conteúdo ou atributos diferentes:

Comentários

Extensibility points are a mechanism by which an app can add functionality in a manner defined by the operating system. An example of an app extensibility point is the ability to create a file type association and enable your app to be the default handler for files with a specific file name extension.

Exemplos

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


<Applications>
  <Application Id="App" StartPage="default.html">
    <VisualElements DisplayName="Assocation launching sample" 
         Logo="images\squareTile-sdk.png" SmallLogo="images\smallTile-sdk.png" 
         Description="SDK sample" 
         ForegroundText="dark" BackgroundColor="#FFFFFF" ToastCapable="false">
      <DefaultTile ShowName="allLogos" />
      <SplashScreen BackgroundColor="white" Image="images\splash-sdk.png" />
    </VisualElements>
    <Extensions>
      <Extension Category="windows.fileTypeAssociation">
        <FileTypeAssociation Name=".alsdkjs">
          <SupportedFileTypes>
            <FileType>.alsdkjs</FileType>
          </SupportedFileTypes>
        </FileTypeAssociation>
      </Extension>
      <Extension Category="windows.protocol">
        <Protocol Name="alsdkjs" />
      </Extension>
    </Extensions>
  </Application>
</Applications>

Consulte também

Concepts
App contracts and extensions

Requisitos

Namespace

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

 

 

Mostrar:
© 2016 Microsoft