PackageDeploymentManager.IsPackageRegistrationPending(String) 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.
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 IsPackageRegistrationPending(Platform::String ^ packageFamilyName) = IsPackageRegistrationPending;
public:
virtual bool IsPackageRegistrationPending(Platform::String ^ packageFullName) = IsPackageRegistrationPending;
bool IsPackageRegistrationPending(winrt::hstring const& packageFamilyName);
bool IsPackageRegistrationPending(winrt::hstring const& packageFullName);
public bool IsPackageRegistrationPending(string packageFamilyName);
public bool IsPackageRegistrationPending(string packageFullName);
function isPackageRegistrationPending(packageFamilyName)
function isPackageRegistrationPending(packageFullName)
Public Function IsPackageRegistrationPending (packageFamilyName As String) As Boolean
Public Function IsPackageRegistrationPending (packageFullName As String) As Boolean
Parameters
- 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; otherwise, false
.