FindRelatedPackagesOptions 类

定义

在搜索包时提供筛选。

public ref class FindRelatedPackagesOptions sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.IFindRelatedPackagesOptionsFactory, 983040, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FindRelatedPackagesOptions final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.IFindRelatedPackagesOptionsFactory), 983040, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FindRelatedPackagesOptions
function FindRelatedPackagesOptions(Relationship)
Public NotInheritable Class FindRelatedPackagesOptions
继承
Object Platform::Object IInspectable FindRelatedPackagesOptions
属性

Windows 要求

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

构造函数

FindRelatedPackagesOptions(PackageRelationship)

创建 FindRelatedPackagesOptions 的新实例。

属性

IncludeFrameworks

指示是否应包含框架包。

IncludeHostRuntimes

指示是否应包含 hostRuntime 包。

IncludeOptionals

指示是否应包括可选的依赖项包。

IncludeResources

指示是否应包含资源包。

Relationship

PackageRelationship 指定要检索的包的关系。

适用于

另请参阅