StagePackageOptions.ExternalLocationUri Property
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.
Gets or sets the URI of an external disk location outside of the MSIX package where the package manifest can reference application content.
public:
property Uri ^ ExternalLocationUri { Uri ^ get(); void set(Uri ^ value); };
Uri ExternalLocationUri();
void ExternalLocationUri(Uri value);
public System.Uri ExternalLocationUri { get; set; }
var uri = stagePackageOptions.externalLocationUri;
stagePackageOptions.externalLocationUri = uri;
Public Property ExternalLocationUri As Uri
Property Value
The URI of an external disk location outside of the MSIX package where the package manifest can reference application content.
Remarks
This property is intended to be used when you are granting package identity by packaging with external location. A package with external location contains only a package manifest (not an executable or other application content). The package manifest references application content in an external disk location outside of the package.
In this scenario, you can use the ExternalLocationUri property to specify the location where your application's executable and other content are installed to. In code that is run by your installer or your application, create a StagePackageOptions object and assign this property to the external location. Then, call the StagePackageByUriAsync method and pass the StagePackageOptions object to options parameter.