IPackageCatalogStatics2 接口

定义

定义实现 OpenForPackage 静态方法的包目录。

public interface class IPackageCatalogStatics2
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
/// [Windows.Foundation.Metadata.Guid(1276232025, 39464, 22924, 177, 133, 85, 225, 137, 155, 43, 228)]
struct IPackageCatalogStatics2
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
[Windows.Foundation.Metadata.Guid(1276232025, 39464, 22924, 177, 133, 85, 225, 137, 155, 43, 228)]
public interface IPackageCatalogStatics2
Public Interface IPackageCatalogStatics2
属性

Windows 要求

设备系列
Windows 11 Insider Preview (在 10.0.23504.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v15.0 中引入)

方法

OpenForPackage(Package)

允许侦听任何 及其依赖项 (可选、资源和 hostRuntime) 。

适用于