Windows 데스크톱 응용 프로그램
콘텐츠의 테이블 축소
콘텐츠의 테이블 확장
정보
요청한 주제가 아래에 표시됩니다. 그러나 이 주제는 이 라이브러리에 포함되지 않습니다.

PackageManager Class

사용자가 사용할 수 있는 소프트웨어를 관리합니다.

중요   Windows 스토어 앱에서 이 클래스를 사용할 수 없습니다.

구문


public sealed class PackageManager

특성

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

멤버

PackageManager클래스에는 다음과 같은 형식의 멤버가 있습니다.

생성자

PackageManager클래스에는 다음과 같은 생성자가 있습니다.

생성자Description
PackageManager Creates and initializes a new instance of the object.

 

메서드

The PackageManager 클래스 - 이러한 메서드가 있습니다. 다음 위치의 메서드도 상속합니다. Object 클래스.

메서드Description
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.

 

요구 사항

지원되는 최소 클라이언트

Windows 8 [데스크톱 앱만]

지원되는 최소 서버

Windows Server 2012 [데스크톱 앱만]

Namespace

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

Metadata

Windows.winmd

참고 항목

샘플
앱 패키지 샘플 추가
앱 패키지 열거 샘플
이름 및 게시자별로 앱 패키지 열거 샘플
사용자 SID별 앱 패키지 열거 샘플
앱 패키지 샘플 제거
개념
앱 패키지 및 배포
참조
DeploymentResult
PackageUserInformation

 

 

표시:
© 2016 Microsoft