RemovalOptions RemovalOptions RemovalOptions RemovalOptions Enum

Values that modify the removal of a package.

Syntax

Declaration

public enum RemovalOptionspublic enum RemovalOptionsPublic Enum RemovalOptionspublic enum RemovalOptions

Fields

None
None
None
None

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

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 value. If you specify PreserveApplicationData on an incompatible package, RemovePackageAsync(String, RemovalOptions) returns E_INVALIDARG.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

System.FlagsAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Management.Deployment.dll