winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

RemovePackageCatalogOptions.cpp (1021B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #pragma warning( push )
      5 #pragma warning ( disable : 4467 6388)
      6 // 6388 Allow CreateInstance.
      7 #include <wil\cppwinrt_wrl.h>
      8 // 4467 Allow use of uuid attribute for com object creation.
      9 #include "RemovePackageCatalogOptions.h"
     10 #pragma warning( pop )
     11 #include "RemovePackageCatalogOptions.g.cpp"
     12 #include "Converters.h"
     13 #include "Helpers.h"
     14 
     15 namespace winrt::Microsoft::Management::Deployment::implementation
     16 {
     17     hstring RemovePackageCatalogOptions::Name()
     18     {
     19         return hstring(m_name);
     20     }
     21     void RemovePackageCatalogOptions::Name(hstring const& value)
     22     {
     23         m_name = value;
     24     }
     25     bool RemovePackageCatalogOptions::PreserveData()
     26     {
     27         return m_preserveData;
     28     }
     29     void RemovePackageCatalogOptions::PreserveData(bool const& value)
     30     {
     31         m_preserveData = value;
     32     }
     33 
     34     CoCreatableMicrosoftManagementDeploymentClass(RemovePackageCatalogOptions);
     35 }