serverpreview:Extension

Declares an extensibility point for the app.

Element hierarchy

<Package>
<Applications>
<Application>
<Extensions>
<serverpreview:EventProviders>

Syntax

<serverpreview:Extension Category       = "windows.eventProviders" | 
                                          "windows.performanceProviders" | 
                                          "windows.iisModules"  |
                                          "windows.ntServices" |
                                          "windows.wmiProviders" >
  <!-- Child elements -->
  ( serverpreview:IisModules*
  | serverpreview:PerformanceProviders*
  | serverpreview:EventProviders*
  | serverpreview:NTServices*
  | serverpreview:WmiProviders*
  )*

</serverpreview:Extension>

Key

          * optional (zero or more)

          ? optional (zero or one)

Attributes and Elements

Attributes

Attribute Description Data type Required Default value
Category The type of app extensibility point.

This attribute can have one of the following values:

  • windows.eventProviders
  • windows.performanceProvices
  • windows.iisModules
  • windows.ntServices
  • windows.wmiProviders
Yes

 

Child Elements

Child Element Description
serverpreview:IisModules Declares an app extensibility point of type windows.iisModules.
serverpreview:PerformanceProviders Declares an app extensibility point of type windows.performanceProviders.
serverPreview:EventProviders Declares an app extensibility point of type windows.eventProviders.
serverpreview:NTServices Declares an app extensibility point of type windows.ntServices.
serverpreview:WmiProviders Declares an app extensibility point of type windows.wmiProviders.

 

Parent Elements

Parent Element Description
Extensions (type: CT_ApplicationExtensions) Defines one or more extensibility points for the app.

 

Remarks

Set the AppListEntry attribute of the uap:VisualElements element for the application to "none" when you use server-specific app extensions.

Examples

The following example identifies a performance counter to add to the server-specific app extensions.

<Package ...
         xmlns:serverpreview=http://schemas.microsoft.com/appx/manifest/serverpreview/windows10"  
         IgnorableNamespaces="... serverpreview">
    <Applications>
        <Application Id="TestPerformanceProvider">
            <uap:VisualElements AppListEntry="none" 
                                DisplayName="TestPerformanceProvider" 
                                Square150x150Logo="logo.png" 
                                Square44x44Logo="logo.png" 
                                Description="TestPerformanceProvider" 
                                BackgroundColor="#777777"/>
            <Extensions>
                <serverpreview:Extension Category="windows.performanceProviders">  
                    <serverpreview:PerformanceProviders>  
                        <serverpreview:PerformanceProvider Id="19b99d4e-deef-4de5-9fe8-5d53a01f79e0"
                                                           ManifestFile="Counters.xml"  
                                                           ResourceFile="PerfSample.exe" />  
                    </serverpreview:PerformanceProviders>  
                </serverpreview:Extension>  
            </Extensions>
        </Application>
    </Applications>
</Package>

Requirements

Namespace http://schemas.microsoft.com/appx/manifest/serverpreview/windows10