RemovalOptions RemovalOptions RemovalOptions RemovalOptions RemovalOptions Enum

Definition

Values that modify the removal of a package.

This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.

public : enum class RemovalOptions
enum class winrt::Windows::Management::Deployment::RemovalOptions : uint32_t
public enum RemovalOptions
Public Enum RemovalOptions
var value = Windows.Management.Deployment.RemovalOptions.none;
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 None None

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

PreserveApplicationData PreserveApplicationData 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.

See Also