共用方式為


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指定要擷取之封裝的關聯性。

適用於

另請參閱