Share via


Updatealerttemplates:Stsadm 作業 (Windows SharePoint Services)

作業名稱:Updatealerttemplates

描述

讓系統管理員更新自訂變更至 Alerttemplates.xml 檔案。

語法

stsadm -o updatealerttemplates

-url <URL 名稱>

[-filename <檔案名稱>]

[-lcid <語言>

參數

參數 必要? 描述

url

有效的 URL,例如 http://server_name

指定 URL 名稱給網站集合。

filename (f)

提醒範本檔的名稱

指定 Alerttemplates.xml 檔案。

lcid

有效的區域設定識別碼,例如 "1033" 表示英文

指定提醒範本的語言區域識別碼

備註

Windows SharePoint Services 3.0 包含的提醒功能,是一項電子郵件通知服務,可協助使用者追蹤網站的變更。在執行 Windows SharePoint Services 3.0 的伺服器上建立、修改或刪除文件、清單或清單中的項目時,使用者可設定要收到的變更通知提醒。

Windows SharePoint Services 3.0 包含預先定義的提醒範本集。這些提醒範本儲存在 Alerttemplates.xml。Alerttemplates.xml 是用來定義用於建立每個清單類型之提醒訊息的格式、內容和屬性。開發人員可以自訂提醒,方法是修改 Alerttemplates.xml 複本,然後使用 stsadm -o updatealerttemplates 命令載入自訂的提醒範本。如需詳細資訊,請參閱預先定義的提醒範本 (英文) (https://go.microsoft.com/fwlink/?linkid=133225&clcid=0x404) 。

請勿手動修改或建立 Alerttemplates.xml 檔案自訂。如此做會導致升級或安裝 Service Pack 時功能遺失。

範例

若要更新特定區域的 Alerttemplates.xml 檔案,請輸入下列語法:

stsadm -o updatealerttemplates -url https://localhost -f C:\Alerttemplates.xml –lcid 1033

注意

任何資料庫中的提醒範本,若不存在於 XML 檔案中,就不會遭到修改。

注意

如果您希望對範本清單所做的變更立即生效,請先執行 updatealerttemplates 作業,再執行 iisreset 命令。