Minimal ADF Template

The following application definition file (ADF) template shows the minimum ADF elements required for the application to build successfully. However, there are no subscription classes and notification classes, and there are no rules to generate notifications, so this application will not do anything.

ms145232.note(zh-cn,SQL.90).gif注意:
This ADF will compile if you provide a value for the %SystemName% parameter in the instance configuration file (ICF).

This template is intended for those who are familiar with developing Notification Services applications and want a near-empty ADF for starting new applications.

Click Copy Code to copy this template to the Clipboard.

<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns="https://www.microsoft.com/MicrosoftNotificationServices/ApplicationDefinitionFileSchema">

    <!-- Version -->
    <!-- History -->
    <!-- Database Definition -->
    <!-- Event Classes -->

    <!-- Subscription Classes -->
    <SubscriptionClasses></SubscriptionClasses>

    <!-- Notification Classes -->
    <NotificationClasses></NotificationClasses>

    <!-- Event Providers -->

    <!-- Generator Settings -->
    <Generator>
        <SystemName>%SystemName%</SystemName>
    </Generator>

    <!-- Distributor Settings -->
    <Distributors>
        <Distributor>
            <SystemName>%SystemName%</SystemName>
        </Distributor>
    </Distributors>

    <!-- Application Execution Settings -->
    <!-- Important: At minimum, you should define
     a vacuuming schedule and turn off some or all
     distributor logging. -->

</Application>

请参阅

概念

Complete ADF Template

其他资源

定义 Notification Services 应用程序
Application Definition File Templates

帮助和信息

获取 SQL Server 2005 帮助