Share via


CreatePackageDependencyOptions.LifetimeArtifactKind Property

Definition

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

public:
 property PackageDependencyLifetimeArtifactKind LifetimeArtifactKind { PackageDependencyLifetimeArtifactKind get(); void set(PackageDependencyLifetimeArtifactKind value); };
PackageDependencyLifetimeArtifactKind LifetimeArtifactKind();

void LifetimeArtifactKind(PackageDependencyLifetimeArtifactKind value);
public PackageDependencyLifetimeArtifactKind LifetimeArtifactKind { get; set; }
var packageDependencyLifetimeArtifactKind = createPackageDependencyOptions.lifetimeArtifactKind;
createPackageDependencyOptions.lifetimeArtifactKind = packageDependencyLifetimeArtifactKind;
Public Property LifetimeArtifactKind As PackageDependencyLifetimeArtifactKind

Property Value

The type of artifact to use to define the lifetime of the package dependency.

Remarks

The lifetime artifact can be the current process, a file, or a registry key that indicates to the system that the app is still available. If the specified artifact no longer exists, the OS can assume the dependency is no longer needed and it can uninstall the framework package if no other apps have declared a dependency on it. This feature is useful for scenarios where an app neglects to remove the install-time pin when it is uninstalled.

If you set this property to PackageDependencyLifetimeArtifactKind.FilePath or PackageDependencyLifetimeArtifactKind.RegistryKey, use the LifetimeArtifact property to specify the name of the artifact.

Applies to

See also