CreatePackageDependencyOptions Class

Definition

Defines criteria that can be applied when creating an install-time reference to a framework package by using the PackageDependency.Create method. This informs the OS that your unpackaged app has a dependency upon a framework package that meets the specified criteria.

C#
[Windows.Foundation.Metadata.Activatable(1)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public sealed class CreatePackageDependencyOptions
C#
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract), 65536)]
public sealed class CreatePackageDependencyOptions
Inheritance
Object CreatePackageDependencyOptions
Attributes

Constructors

Properties

Architectures

Gets or sets the processor architectures of the framework package on which your unpackaged app has a dependency.

LifetimeArtifact

Gets or sets the name of the artifact used to define the lifetime of the package dependency, if the LifetimeArtifactKind property is set to PackageDependencyLifetimeArtifactKind.FilePath or PackageDependencyLifetimeArtifactKind.RegistryKey.

LifetimeArtifactKind

Gets or sets the type of artifact to use to define the lifetime of the package dependency.

VerifyDependencyResolution

Gets or sets a value that indicates whether to disable dependency resolution when pinning a package dependency. This is useful for installers running as user contexts other than the target user (for example, installers running as LocalSystem).

Applies to

Product Versions
Windows App SDK 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also