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 包和单一实例包关联的进程,是否将被强制关闭。

OnErrorShowUI

获取或设置一个值,该值指示在发生错误时是否应显示 UI。

适用于

另请参阅