Jaa


PackageManager.SetPackageState(String, PackageState) Method

Definition

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

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.

Applies to

See also