PackageManager Class

Administra el software disponible para un usuario.

Importante  No puede utilizar esta clase en una aplicación de la Tienda Windows.

Sintaxis


Public NotInheritable Class PackageManager

Atributos

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

A continuación se indican los tipos de miembros de PackageManager (Clase):

Constructores

A continuación se indican los constructores de PackageManager (Clase).

ConstructorDescripción
PackageManager Creates and initializes a new instance of the object.

 

Métodos

The PackageManager Clase tiene estos métodos. También hereda métodos de Object Clase.

MétodoDescripción
AddPackageAsync Adds a package (main package) and its dependencies for the current logged-in user.
CleanupPackageForUserAsync Cleans up a specified package for a specified user. Used to cleanup packages installed for a user after their user profile is deleted.
FindPackage Retrieves information about the specified package installed for any user.
FindPackageForUser Retrieves information about a specific package installed for a specific user or for all users.
FindPackages() Retrieves information about a specified family of packages installed across all users.
FindPackages(String) Retrieves information about a specified family of packages installed across all users.
FindPackages(String, String) Finds all installed packages with the specified name and publisher.
FindPackagesForUser(String) Finds all packages installed for the specified user.
FindPackagesForUser(String, String) Retrieves information about a specified family of packages installed for a specific user.
FindPackagesForUser(String, String, String) Retrieves information about all packages with the specified package name and publisher name, installed for a specific user.
FindPackagesForUserWithPackageTypes(String, PackageTypes) Finds packages of specific types that are installed for the specified user.
FindPackagesForUserWithPackageTypes(String, String, PackageTypes) Retrieves information about a specified family of packages and of specific types that are installed for the specified user.
FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) Retrieves information about packages of specific types with the specified package name and publisher name, installed for a specific user.
FindPackagesWithPackageTypes(PackageTypes) Retrieves information about specific package types that are installed across all users.
FindPackagesWithPackageTypes(String, PackageTypes) Retrieves information about a specified family of packages and specific package types that are installed across all users.
FindPackagesWithPackageTypes(String, String, PackageTypes) Finds all installed packages of specific types with the specified name and publisher.
FindUsers Finds the users who have installed the specified package.
RegisterPackageAsync Registers a package (the main package) and its dependency packages for the current user.
RegisterPackageByFullNameAsync Registers a package (the main package) by its full name and its dependency packages for the current user.
RemovePackageAsync(String) Removes a package for the current user asynchronously and receives progress and status messages on the removal operation.
RemovePackageAsync(String, RemovalOptions) Removes a package for the current user asynchronously and receives progress and status messages on the removal operation.
SetPackageState Sets the state of a package, for example, to usable, tampered with, and so on.
StagePackageAsync(Uri, IIterable(Uri)) Stages a package to the system without registering it.
StagePackageAsync(Uri, IIterable(Uri), DeploymentOptions) Stages a package to the system without registering it.
StageUserDataAsync Stages a package's user data to the system without registering it.
UpdatePackageAsync Updates an installed package or its dependency packages for the current user.

 

Requisitos

Cliente mínimo admitido

Windows 8 [solo aplicaciones de escritorio]

Servidor mínimo admitido

Windows Server 2012 [solo aplicaciones de escritorio]

Espacio de nombres

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

Metadatos

Windows.winmd

Vea también

Ejemplos
Ejemplo de agregar paquete de aplicación
Ejemplo de enumerar paquetes de aplicación
Ejemplo de enumerar paquetes de aplicación por nombre y publicador
Ejemplo de enumeración de paquetes de aplicaciones por SID de usuario
Ejemplo de eliminación de un paquete de aplicación
Conceptos
Paquetes e implementación de la aplicación
Referencia
DeploymentResult
PackageUserInformation

 

 

Mostrar:
© 2014 Microsoft