InstalledDesktopApp.GetInventoryAsync 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
현재 사용자가 사용할 수 있는 설치된 Win32 앱 목록을 가져옵니다. 여기에는 모든 사용자뿐만 아니라 현재 사용자에 대해서만 설치된 앱이 포함됩니다.
public:
static IAsyncOperation<IVectorView<InstalledDesktopApp ^> ^> ^ GetInventoryAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<IVectorView<InstalledDesktopApp>> GetInventoryAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<InstalledDesktopApp>> GetInventoryAsync();
function getInventoryAsync()
Public Shared Function GetInventoryAsync () As IAsyncOperation(Of IReadOnlyList(Of InstalledDesktopApp))
반환
작업이 완료되었으며 현재 사용자가 사용할 수 있는 설치된 Win32 앱 목록을 포함하는 비동기 작업을 반환합니다.
- 특성
예제
IReadOnlyList<InstalledDesktopApp> installedApps = await InstalledDesktopApp.GetInventoryAsync();
foreach (var app in installedApps)
{
Console.WriteLine("Display Name: " + app.DisplayName);
Console.WriteLine("Application ID: " + app.Id);
Console.WriteLine("Publisher: " + app.Publisher);
Console.WriteLine("Display Version: " + app.DisplayVersion);
}
설명
목록에는 모든 사용자뿐만 아니라 현재 사용자에 대해서만 설치된 앱이 포함됩니다.