共用方式為


DeploymentInitializeOptions 類別

定義

表示部署選項的類別。 以參數的形式傳遞至 DeploymentManager.Initialize (DeploymentInitializeOptions)

public ref class DeploymentInitializeOptions sealed
/// [Windows.Foundation.Metadata.Activatable(131072, "Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DeploymentInitializeOptions final
[Windows.Foundation.Metadata.Activatable(131072, "Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DeploymentInitializeOptions
function DeploymentInitializeOptions()
Public NotInheritable Class DeploymentInitializeOptions
繼承
Object Platform::Object IInspectable DeploymentInitializeOptions
屬性

建構函式

DeploymentInitializeOptions()

初始化 DeploymentInitializeOptions 類別的新實例。

屬性

ForceDeployment

取得或設定值,這個值表示註冊Windows 應用程式 SDK套件時,如果目前正在使用Windows 應用程式 SDK Main和 Singleton 封裝,則與 Windows 應用程式 SDK Main 和 Singleton封裝相關聯的進程是否會強制關閉。

OnErrorShowUI

取得或設定值,這個值表示是否應該在發生錯誤時顯示 UI。

適用於

另請參閱