<描述>項目 (ClickOnce 部署)<description> element (ClickOnce deployment)

識別用來建立 shell 的存在的應用程式資訊和新增或移除程式控制台 中的項目。Identifies application information used to create a shell presence and an Add or Remove Programs item in Control Panel.

語法Syntax


      <description 
   publisher 
   product
   suiteName
   supportUrl
/>

元素和屬性Elements and attributes

description 項目是必要的,且位於 urn:schemas-microsoft-com:asm.v1 命名空間。The description element is required and is in the urn:schemas-microsoft-com:asm.v1 namespace. 它包含沒有子項目,並具有下列屬性。It contains no child elements and has the following attributes.

屬性Attribute 描述Description
publisher 必要項。Required. 識別在 Windows 中的圖示位置所使用的公司名稱開始 功能表並新增或移除程式在控制台中,當部署已安裝的項目。Identifies the company name used for icon placement in the Windows Start menu and the Add or Remove Programs item in Control Panel, when the deployment is configured for install.
product 必要項。Required. 識別完整的產品名稱。Identifies the full product name. 用來做為安裝在 Windows 中的圖示的標題啟動功能表。Used as the title for the icon installed in the Windows Start menu.
suiteName 選擇性。Optional. 識別的子資料夾中publisher在 Windows 中的資料夾啟動功能表。Identifies a subfolder within the publisher folder in the Windows Start menu.
supportUrl 選擇性。Optional. 指定支援 URL 所示新增或移除程式控制台 中的項目。Specifies a support URL that is shown in the Add or Remove Programs item in Control Panel. 此 URL 的捷徑也會建立在 Windows 中的應用程式支援啟動功能表上,當將部署設定進行安裝。A shortcut to this URL is also created for application support in the Windows Start menu, when the deployment is configured for installation.

備註Remarks

所有的部署設定中需要的 description 項目。The description element is required in all deployment configurations.

範例Example

下列程式碼範例說明description中的項目ClickOnceClickOnce部署資訊清單。The following code example illustrates a description element in a ClickOnceClickOnce deployment manifest. 此程式碼範例是針對提供之較大範例的一部分ClickOnce 部署資訊清單主題。This code example is part of a larger example provided for the ClickOnce Deployment Manifest topic.

<description
  asmv2:publisher="My Company Name"
  asmv2:product="My Application"
  xmlns="urn:schemas-microsoft-com:asm.v1" />

另請參閱See also