AppInstallManager.GetIsPackageIdentityAllowedToInstallAsync Method
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.
Returns a value that indicates whether the package with the specified identity info is allowed to be installed on the current device.
public:
virtual IAsyncOperation<bool> ^ GetIsPackageIdentityAllowedToInstallAsync(Platform::String ^ correlationVector, Platform::String ^ packageIdentityName, Platform::String ^ publisherCertificateName) = GetIsPackageIdentityAllowedToInstallAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> GetIsPackageIdentityAllowedToInstallAsync(winrt::hstring const& correlationVector, winrt::hstring const& packageIdentityName, winrt::hstring const& publisherCertificateName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> GetIsPackageIdentityAllowedToInstallAsync(string correlationVector, string packageIdentityName, string publisherCertificateName);
function getIsPackageIdentityAllowedToInstallAsync(correlationVector, packageIdentityName, publisherCertificateName)
Public Function GetIsPackageIdentityAllowedToInstallAsync (correlationVector As String, packageIdentityName As String, publisherCertificateName As String) As IAsyncOperation(Of Boolean)
Parameters
- correlationVector
-
String
Platform::String
winrt::hstring
A correlation vector string that can be used to generate telemetry data for the operation.
- packageIdentityName
-
String
Platform::String
winrt::hstring
The identity name of the package, as specified in the package manifest.
- publisherCertificateName
-
String
Platform::String
winrt::hstring
The publisher name of the package, as specified in the package manifest.
Returns
True if the package with the specified identity info is allowed to be installed on the current device; otherwise, false.
- Attributes
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
App capabilities |
runFullTrust
|
Remarks
For more details about identity names and publisher names, see Identity in the package manifest schema reference.