AlertTemplates スキーマ (AlertTemplates)

最終更新日: 2010年7月6日

適用対象: SharePoint Foundation 2010

Microsoft SharePoint Foundation には、事前に定義された一連の通知テンプレートが用意されています。これらの通知テンプレートは、%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\XML フォルダーにある Alerttemplates.xml ファイルに格納されています。Alerttemplates.xml は、各リストの種類から通知メッセージを作成する際に使用する形式、コンテンツ、フィルター、イベントの種類、およびプロパティを定義します。開発者は、Alerttemplates.xml ファイルのコピーを変更し、カスタマイズした通知テンプレートを stsadm -o updatealerttemplates コマンドで読み込んで、通知をカスタマイズできます。

通知テンプレートは、新しい通知のページと通知の編集ページ (subnew.aspx ページおよび subedit.aspx ページ) に使用するフィルターとイベントの種類も定義します。

注意

Alerttemplates.xml ファイルを変更しないでください。変更すると、Service Pack のアップグレード時またはインストール時に機能が失われる場合があります。

事前定義された通知テンプレートの一覧は、「定義済みの通知テンプレート」を参照してください。

AlertTemplates

  AlertTemplate

    EventTypes

    Format

      Digest

      Header

      HeaderFields

      Subject

      HeaderFieldsHeader

      HeaderFieldsFooter

      RowHeader

      RowFields

      RowFooter

      Footer

      Immedate

      Fields

    Properties

      DigestNotificationExcludedFields

      ImmediateNotificationExcludedFields

      NotificationHandlerAssembly

      NotificationHandlerClassName

      UpdateHandlerAssembly

      UpdateHandlerClassName

    Filters

      FilterDefinition

        FriendlyName

        ShortName

        Query

次の例は、通知テンプレート スキーマの基本要素を示しています。

<AlertTemplates>
  <AlertTemplate Type="List" Default="True" Name ="Default Template">
  </AlertTemplate>
  <AlertTemplate Type="List" Name="SPAlertTemplateType.GenericList">
    <EventTypes IsVisible="True"/>
    <Format>
    </Format>
    <Properties>
    </Properties>
    <Filters>
      <FilterDefinition>
      </FilterDefinition>
    </Filters>
  </AlertTemplate>
</AlertTemplates>

関連項目

参照

IAlertNotifyHandler

概念

クエリ スキーマ

SharePoint Foundation での通知