StorePackageInstallOptions 类

定义

表示在使用 RequestDownloadAndInstallStorePackagesAsync 方法下载和安装当前应用的 DLC) 包 (可下载内容时可以指定的选项。

public ref class StorePackageInstallOptions sealed
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Services.Store.StoreContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StorePackageInstallOptions final
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Services.Store.StoreContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StorePackageInstallOptions
function StorePackageInstallOptions()
Public NotInheritable Class StorePackageInstallOptions
继承
Object Platform::Object IInspectable StorePackageInstallOptions
属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Services.Store.StoreContract (在 v3.0 中引入)

注解

注意

DLC 包并非对所有开发人员帐户都可用。

构造函数

StorePackageInstallOptions()

创建 StorePackageInstallOptions 类的新实例。

属性

AllowForcedAppRestart

获取或设置一个值,该值指示使用 RequestDownloadAndInstallStorePackagesAsync 方法安装当前应用的可下载内容 (DLC) 包后,操作系统是否可以强制应用重启。

适用于

另请参阅