CreatePackageDependencyOptions.LifetimeArtifactKind Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.