PackageDeploymentManager.IsPackageRegistrationPendingForUser 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.
Detects whether package registration is pending for the specified target and user.
If a package is in use, and you call AddPackageAsync with a newer version and with the option DeferRegistrationWhenPackagesAreInUse set to true
, then the registration is delayed until the package is no longer in use. When it's no longer in use, then it can be updated. In cases like that, IsPackageRegistrationPending returns true
.
public:
virtual bool IsPackageRegistrationPendingForUser(Platform::String ^ userSecurityId, Platform::String ^ packageFamilyName) = IsPackageRegistrationPendingForUser;
public:
virtual bool IsPackageRegistrationPendingForUser(Platform::String ^ userSecurityId, Platform::String ^ packageFullName) = IsPackageRegistrationPendingForUser;
bool IsPackageRegistrationPendingForUser(winrt::hstring const& userSecurityId, winrt::hstring const& packageFamilyName);
bool IsPackageRegistrationPendingForUser(winrt::hstring const& userSecurityId, winrt::hstring const& packageFullName);
public bool IsPackageRegistrationPendingForUser(string userSecurityId, string packageFamilyName);
public bool IsPackageRegistrationPendingForUser(string userSecurityId, string packageFullName);
function isPackageRegistrationPendingForUser(userSecurityId, packageFamilyName)
function isPackageRegistrationPendingForUser(userSecurityId, packageFullName)
Public Function IsPackageRegistrationPendingForUser (userSecurityId As String, packageFamilyName As String) As Boolean
Public Function IsPackageRegistrationPendingForUser (userSecurityId As String, packageFullName As String) As Boolean
Parameters
- userSecurityId
-
String
Platform::String
winrt::hstring
The user to query about.
- packageFamilyNamepackageFullName
-
String
Platform::String
winrt::hstring
The package family name of the target to query about.
Returns
bool
true
if package registration is pending for the specified target and user; otherwise, false
.