AppInstallManager.GetIsPackageIdentityAllowedToInstallForUserAsync 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 for the specified user.
public:
virtual IAsyncOperation<bool> ^ GetIsPackageIdentityAllowedToInstallForUserAsync(User ^ user, Platform::String ^ correlationVector, Platform::String ^ packageIdentityName, Platform::String ^ publisherCertificateName) = GetIsPackageIdentityAllowedToInstallForUserAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> GetIsPackageIdentityAllowedToInstallForUserAsync(User const& user, winrt::hstring const& correlationVector, winrt::hstring const& packageIdentityName, winrt::hstring const& publisherCertificateName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> GetIsPackageIdentityAllowedToInstallForUserAsync(User user, string correlationVector, string packageIdentityName, string publisherCertificateName);
function getIsPackageIdentityAllowedToInstallForUserAsync(user, correlationVector, packageIdentityName, publisherCertificateName)
Public Function GetIsPackageIdentityAllowedToInstallForUserAsync (user As User, correlationVector As String, packageIdentityName As String, publisherCertificateName As String) As IAsyncOperation(Of Boolean)
Parameters
- user
- User
An object that identifies the user to specify for this operation.
- 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 for the specified user; 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.