RegisterPackageOptions Class
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.
Specifies the deployment options that you can configure when you use the RegisterPackageByUriAsync method to register a Package.
public ref class RegisterPackageOptions sealed
/// [Windows.Foundation.Metadata.Activatable(655360, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 655360)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RegisterPackageOptions final
[Windows.Foundation.Metadata.Activatable(655360, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 655360)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RegisterPackageOptions
function RegisterPackageOptions()
Public NotInheritable Class RegisterPackageOptions
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10, version 2004 (introduced in 10.0.19041.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v10.0)
|
Remarks
You can pass an initialized instance of this class to the options parameter of the RegisterPackageByUriAsync method.
Constructors
RegisterPackageOptions() |
Creates a new instance of the RegisterPackageOptions class. |
Properties
AllowUnsigned |
Gets or sets a value that indicates whether to allow an unsigned Package to be registered. |
AppDataVolume |
Gets or sets the target volume on which to store app data. |
DeferRegistrationWhenPackagesAreInUse |
Gets or sets a value that indicates whether to delay registration of the main Package or dependency packages if the packages are currently in use. |
DependencyPackageUris |
Gets the list of URIs of the dependency Packages to add. |
DeveloperMode |
Gets or sets a value that indicates whether the app is installed in developer mode. |
ExpectedDigests |
Gets a dictionary that maps the URIs associated with a RegisterPackageOptions with the corresponding digest string. |
ExternalLocationUri |
Gets or sets the URI of an external disk location outside of the MSIX Package where the package manifest can reference application content. |
ForceAppShutdown |
Gets or sets a value that indicates whether the processes associated with the Package will be shut down forcibly so that registration can continue if the package, or any package that depends on the package, is currently in use. |
ForceTargetAppShutdown |
Gets or sets a value that indicates whether the processes associated with the Package will be shut down forcibly so that registration can continue if the package is currently in use. |
ForceUpdateFromAnyVersion |
Gets or sets a value that indicates whether to force a specific version of a Package to be staged/registered, regardless of if a higher version is already staged/registered. |
InstallAllResources |
Gets or sets a value that indicates whether the app skips resource applicability checks. This effectively stages or registers all resource Packages that a user passes in to the command, which forces applicability for all packages contained in a bundle. If a user passes in a bundle, all contained resource packages will be registered. |
OptionalPackageFamilyNames |
Gets the list of Package family names from the main bundle to be registered. |
StageInPlace |
Gets or sets a value that indicates whether to stage the Package in place. |