Share via


uap:LaunchAction (AppointmentsProviderLaunchActions)

描述 uap:AppointmentsProviderLaunchActions 內容動作。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <uap:Extension>

                        <uap:AppointmentsProvider>

                             <uap:AppointmentsProviderLaunchActions>

                                  <uap:LaunchAction>

Syntax

<uap:LaunchAction
    EntryPoint = 'A string with an optional value between 1 and 256 characters in length. Represents the task handling the extension (normally the fully namespace-qualified name of a Windows Runtime type). If EntryPoint is not specified, the EntryPoint defined for the app is used instead.'
    Executable = 'A string with an optional value between 1 and 256 characters in length, that must end with ".exe", and cannot contain the following characters: <, >, :, ", |, ?, or *. Specifies the default executable for the extension. If not specified, the executable defined for the app is used.  If specified, the EntryPoint property is also used. If the EntryPoint property is not specified, the EntryPoint defined for the app is used.'
    RuntimeType = 'A string with an optional value between 1 and 255 characters in length that cannot start or end with a period or contain these characters: <, >, :, ", /, \, |, ?, or *.'
    StartPage = 'A string with an optional value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
    ResourceGroup = 'An alphanumeric string with an optional value between 1 and 255 characters in length. Must begin with a letter.'
    Verb = 'A string that can have any of the following values: "addAppointment", "removeAppointment", "replaceAppointment", "showTimeFrame", or "showAppointmentDetails".'
    DesiredView = 'A string that can have any of the following values: "default", "useLess", "useHalf", "useMore", or "useMinimum".' />

答案

? 選擇性 (零或一個)

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
EntryPoint 可啟用的類別識別碼。 長度介於 1 到 256 個字元之間的字串。 表示處理延伸模組的工作 (通常是Windows 執行階段類型) 的完整命名空間限定名稱。 如果未指定 EntryPoint,則會改用為應用程式定義的 EntryPoint。 No
可執行檔 預設啟動可執行檔。 長度介於 1 到 256 個字元之間的字串,必須以 .exe 結尾,且不能包含下列字元: < 、、 > 、、 :"|?* 。 指定延伸模組的預設可執行檔。 如果未指定,則會使用為應用程式定義的可執行檔。 如果指定,也會使用 EntryPoint 屬性。 如果未指定 EntryPoint 屬性,則會使用為應用程式定義的 EntryPoint。 No
RuntimeType 執行時間提供者。 通常會在應用程式中混合架構時使用。 長度介於 1 到 255 個字元之間的字串,長度不能以 . 或 包含 字元開頭或結尾: < 、、 > 、、 :"|?* No
StartPage 處理擴充點的網頁 長度介於 1 到 256 個字元之間的字串,不能包含下列字元: < 、、、 :>"|?* No
ResourceGroup 選擇性標記,用來將擴充功能啟用分組在一起,以供資源管理之用 (,例如 CPU 和記憶體) 。 請參閱Application@ResourceGroup中的一節。 長度介於 1 到 255 個字元之間的英數位元。 必須以字母開頭。 No
動詞命令 啟動應用程式時傳遞至應用程式的唯一識別碼。 應用程式可以使用此字串來判斷觸發其啟動的 uap:AppointmentsProviderLaunchActions 處理常式。 每個應用程式在套件中都是唯一的,而且區分大小寫。 可具有下列任何值的字串:addAppointment、removeAppointmentreplaceAppointmentshowTimeFrameshowAppointmentDetails No
DesiredView 約會啟動時要使用的螢幕空間數量。 可具有下列任何值的字串: defaultuseLessuseHalfuseMoreuseMinimum No

子元素

無。

父元素

父元素 描述
uap:AppointmentsProviderLaunchActions 宣告啟動約會時要採取的動作。

下列元素的名稱與這個元素相同,但內容或屬性不同:

備註

如需約會提供者所接受啟動動作的詳細資訊,請參閱 AppointmentsProviderLaunchActionVerbs

AppointmentsProviderLaunchActions 中的 LaunchAction () 具有下列語意驗證:

  • 擴充 基底屬性必須遵循下列規則:

    • 如果指定 StartPage 屬性,如果指定 EntryPoint可執行檔RuntimeType 屬性,就會失敗。
    • 否則,如果在未指定EntryPoint的情況下指定可執行檔RuntimeType屬性,則失敗。
  • 如果 AppointmentsProviderLaunchAction) s 中的 LaunchAction ( 定義 EntryPoint 屬性,則 AppointmentsProviderLaunchActions 中的這個 LaunchAction () 或父 uap:ExtensionApplication 元素必須指定 可執行檔 屬性。

規格需求

Item
命名空間 http://schemas.microsoft.com/appx/manifest/uap/windows10
OS 最低版本 Windows 10版本 1511 (組建 10586)