PackageManager.SetPackageState(String, PackageState) PackageManager.SetPackageState(String, PackageState) PackageManager.SetPackageState(String, PackageState) PackageManager.SetPackageState(String, PackageState) Method

Definition

Sets the state of a package, for example, to usable, tampered with, and so on.

public : void SetPackageState(Platform::String packageFullName, PackageState packageState)
void SetPackageState(winrt::hstring packageFullName, PackageState packageState) const;
public void SetPackageState(String packageFullName, PackageState packageState)
Public Sub SetPackageState(packageFullName As String, packageState As PackageState)

Parameters

packageFullName
String String

The full name of the package.

packageState
PackageState PackageState

One of the enumeration values.

Additional features and requirements

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.