PackageManager.RequestAddPackageByAppInstallerFileAsync 메서드

정의

.appinstaller 파일을 사용하여 단일 또는 여러 앱 패키지를 설치할 수 있습니다. 그러면 앱 패키지를 설치하기 전에 SmartScreen 필터 및 사용자 확인을 수행합니다.

public:
 virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ RequestAddPackageByAppInstallerFileAsync(Uri ^ appInstallerFileUri, AddPackageByAppInstallerOptions options, PackageVolume ^ targetVolume) = RequestAddPackageByAppInstallerFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RequestAddPackageByAppInstallerFileAsync(Uri const& appInstallerFileUri, AddPackageByAppInstallerOptions const& options, PackageVolume const& targetVolume);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> RequestAddPackageByAppInstallerFileAsync(System.Uri appInstallerFileUri, AddPackageByAppInstallerOptions options, PackageVolume targetVolume);
function requestAddPackageByAppInstallerFileAsync(appInstallerFileUri, options, targetVolume)
Public Function RequestAddPackageByAppInstallerFileAsync (appInstallerFileUri As Uri, options As AddPackageByAppInstallerOptions, targetVolume As PackageVolume) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)

매개 변수

appInstallerFileUri
Uri Uri

.appinstaller 파일에 대한 URI입니다.

targetVolume
PackageVolume

패키지가 설치된 볼륨입니다.

반환

특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Fall Creators Update (10.0.16299.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v5.0에서 도입되었습니다.)
앱 기능
packageManagement

예제

Package

설명

이 메서드는 SmartScreen 필터를 사용한다는 점을 제외하고 AddPackageByAppInstallerAsync 와 동일합니다.

이 메서드는 JavaScript에서 지원되지 않습니다. 그러나 이 메서드를 호출하는 Windows 런타임 구성 요소를 만든 다음 JavaScript UWP 앱에서 이 구성 요소를 호출할 수 있습니다. 자세한 내용은 앱 설치 관리자 파일 API 문제를 참조하세요.

적용 대상

추가 정보