PackageManager.SetPackageState method

Applies to Windows only

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

Syntax


Public Sub SetPackageState(
  packageFullName As String,  
  packageState As PackageState 
)

Parameters

packageFullName

Type: System.String [.NET] | Platform::String [C++]

The full name of the package.

packageState

Type: PackageState

One of the enumeration values.

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Management.Deployment
Windows::Management::Deployment [C++]

Metadata

Windows.winmd

See also

PackageManager

 

 

Show:
© 2014 Microsoft