CheckInstalledStatusResult.h (1499B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "CheckInstalledStatusResult.g.h" 5 #include <winrt/Windows.Foundation.Collections.h> 6 7 namespace winrt::Microsoft::Management::Deployment::implementation 8 { 9 struct CheckInstalledStatusResult : CheckInstalledStatusResultT<CheckInstalledStatusResult> 10 { 11 CheckInstalledStatusResult() = default; 12 13 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 14 void Initialize( 15 winrt::Microsoft::Management::Deployment::CheckInstalledStatusResultStatus status, 16 Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageInstallerInstalledStatus> installedStatus); 17 #endif 18 19 winrt::Microsoft::Management::Deployment::CheckInstalledStatusResultStatus Status(); 20 winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::Management::Deployment::PackageInstallerInstalledStatus> PackageInstalledStatus(); 21 22 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 23 private: 24 winrt::Microsoft::Management::Deployment::CheckInstalledStatusResultStatus m_status = winrt::Microsoft::Management::Deployment::CheckInstalledStatusResultStatus::Ok; 25 Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageInstallerInstalledStatus> m_installedStatus{ 26 winrt::single_threaded_vector<winrt::Microsoft::Management::Deployment::PackageInstallerInstalledStatus>() }; 27 #endif 28 }; 29 }