Megosztás a következőn keresztül:


FindRelatedPackagesOptions Class

Definition

Provides filtering when searching for packages.

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
Inheritance
Object Platform::Object IInspectable FindRelatedPackagesOptions
Attributes

Windows requirements

Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v15.0)

Constructors

FindRelatedPackagesOptions(PackageRelationship)

Creates a new instance of FindRelatedPackagesOptions.

Properties

IncludeFrameworks

Indicates if framework packages should be included.

IncludeHostRuntimes

Indicates if hostRuntime packages should be included.

IncludeOptionals

Indicates if optional dependency packages should be included.

IncludeResources

Indicates if resource packages should be included.

Relationship

The PackageRelationship specifies the relationship of the packages to be retrieved.

Applies to

See also