Share via


desktop10:DataShortcut

建立不是可執行檔之檔案的快捷方式。

元素階層

<套件>

    <擴充功能>

         <desktop10:Extension>

              <desktop10:DataShortcuts>

                   <desktop10:DataShortcut>

Syntax

<desktop10:DataShortcut
  Path = 'A string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
  WorkingDirectory = 'An optional string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
  WindowOption = 'An optional string that can be one of the following values: "minimized", "maximized", or "normal".'
  Comment = 'An optional string with a value between 1 and 2048 characters.'
  DisplayName = 'An alphanumeric string with a value between 1 and 256 characters in length.'
  Icon = 'An optional string with a value between 1 and 256 characters in length that  cannot contain these characters: <, >, :, ", |, ?, or *.'
  IconIndex = 'An optional numerical value between 0 and 255.'
  AUMID = 'An optional string with a value between 1 and 32767 characters that cannot begin or end with a whitespace character.'
  uap10:Parameters = 'An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.' />

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
路徑 檔案的套件相對路徑。 長度介於 1 到 256 個字元之間的字串,不能包含下列字元: < 、、、 :>"|?* Yes
DisplayName 要顯示在 [開始] 功能表上的名稱。 長度介於 1 到 256 個字元之間的英數位元字串。 Yes
WorkingDirectory 套件相對工作目錄。 長度介於 1 到 256 個字元之間的選擇性字串,不能包含下列字元: < 、、 >:" 、、 |?* No
WindowOption 指定應用程式是否應該開始最小化、最大化或正常。 預設值為一般 選擇性字串,可以是下列其中一個值: 最小化最大化正常 No
註解 快捷方式的批註。 選擇性字串,其值為 1 到 2048 個字元。 No
圖示 要針對 lnk 檔案顯示的圖示影像,格式為 多語系使用者介面 字串格式。 如果未指定任何圖示,殼層會選取預設圖示。 長度介於 1 到 256 個字元之間的選擇性字串,不能包含下列字元: < 、、 >:" 、、 |?* No
IconIndex 目前圖示檔案內的圖示索引。 介於 0 到 255 之間的選擇性數值。 No
AUMID 應用程式使用者模型識別碼 (與快捷方式相關聯的 AUMID) 。 如需詳細資訊,請參閱「備註」。 選擇性字串,其值介於 1 到 32767 個字元之間,不能以空白字元開頭或結尾。 No
uap10:Parameters 包含要傳遞至延伸模組的命令列參數。 僅支援具有套件身分識別的桌面應用程式。 長度介於 1 到 32767 個字元的選擇性字串,其開頭和結尾為非空白字元。 Yes

子元素

無。

父元素

父元素 描述
desktop10:DataShortcuts 宣告應用程式的擴充點。

備註

指定多個資料快捷方式的應用程式應該為每個應用程式指定唯一的 AUMID 值,以確保所有快捷方式都會新增至 [開始] 功能表。 AUMID屬性可讓您為每個快捷方式指定唯一的應用程式使用者模型識別碼 (AUMID) 值。 如果在延伸模組中指定多個快捷方式,且未指定 AUMID,殼層可能會針對延伸模組中的所有快捷方式使用相同的自動產生的 AUMID,以單一 lnk 檔案覆寫提供的快捷方式。

規格需求

Item
desktop10 http://schemas.microsoft.com/appx/manifest/desktop/windows10/10
uap10 http://schemas.microsoft.com/appx/manifest/uap/windows10/10
OS 最低版本 Windows 11版本 22H2 (組建 22621)