DownloadResult.h (1025B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "DownloadResult.g.h" 5 6 namespace winrt::Microsoft::Management::Deployment::implementation 7 { 8 struct DownloadResult : DownloadResultT<DownloadResult> 9 { 10 DownloadResult() = default; 11 12 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 13 void Initialize( 14 winrt::Microsoft::Management::Deployment::DownloadResultStatus status, 15 winrt::hresult extendedErrorCode, 16 hstring const& correlationData); 17 #endif 18 19 hstring CorrelationData(); 20 winrt::Microsoft::Management::Deployment::DownloadResultStatus Status(); 21 winrt::hresult ExtendedErrorCode(); 22 23 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 24 private: 25 std::wstring m_correlationData = L""; 26 winrt::Microsoft::Management::Deployment::DownloadResultStatus m_status = winrt::Microsoft::Management::Deployment::DownloadResultStatus::Ok; 27 winrt::hresult m_extendedErrorCode = S_OK; 28 #endif 29 }; 30 }