StagePackageOptions 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 StagePackageByUriAsync method to stage a package.
public ref class StagePackageOptions 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 StagePackageOptions 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 StagePackageOptions
function StagePackageOptions()
Public NotInheritable Class StagePackageOptions
- 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 StagePackageByUriAsync method.
Constructors
StagePackageOptions() |
Creates a new instance of the StagePackageOptions class. |
Properties
AllowUnsigned |
Gets or sets a value that indicates whether to allow an unsigned package to be added. |
DependencyPackageUris |
Gets the list of URIs of the dependency packages to stage. |
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 StagePackageOptions 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. |
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. |
OptionalPackageUris |
Gets the list of URIs of related optional packages to be updated to the same version as the new optional packages. |
RelatedPackageUris |
Gets the list of URIs of related optional packages to be updated to the same version as the new optional packages. |
RequiredContentGroupOnly |
Gets or sets a value that indicates whether only the required content group will be staged. An app can be installed as a package with the required content group alone. |
StageInPlace |
Gets or sets a value that indicates whether to stage the package in place. |
StubPackageOption |
Gets or sets the stub options for the package. |
TargetVolume |
Gets or sets the volume to which the package is staged. |