RemovalOptions RemovalOptions RemovalOptions Enum

Definition

Values that modify the removal of a package.

public enum RemovalOptionspublic enum RemovalOptionsPublic Enum RemovalOptions
Attributes
System.FlagsAttribute ContractVersionAttribute
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

None None None

No removal options are specified. This is the default deployment behavior.

PreserveApplicationData PreserveApplicationData PreserveApplicationData

Don't remove any application data when the package is removed. This can only apply to packages that were deployed with the DeploymentOptions::DevelopmentMode value. If you specify PreserveApplicationData on an incompatible package, PackageManager::RemovePackageAsync(String, RemovalOptions) returns E_INVALIDARG.