PackageManager.SetPackageState(String, PackageState) 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.
public:
virtual void SetPackageState(Platform::String ^ packageFullName, PackageState packageState) = SetPackageState;
void SetPackageState(winrt::hstring const& packageFullName, PackageState const& packageState);
public void SetPackageState(string packageFullName, PackageState packageState);
function setPackageState(packageFullName, packageState)
Public Sub SetPackageState (packageFullName As String, packageState As PackageState)
Parameters
- packageFullName
-
String
Platform::String
winrt::hstring
The full name of the package.
- packageState
- PackageState
One of the enumeration values.
Windows requirements
App capabilities |
packageManagement
|
Remarks
When SetPackageState is used with a PackageState of Tampered, all processes that are part of the package are terminated. If the package is a framework package, all processes for all packages that depend on the framework are also terminated. This method requires administrative privileges
and alters the status for all users.