winget-cli

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

DiagnosticInformationInstance.h (801B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include "winrt/Microsoft.Management.Configuration.h"
      5 
      6 namespace winrt::Microsoft::Management::Configuration::implementation
      7 {
      8     struct DiagnosticInformationInstance : winrt::implements<DiagnosticInformationInstance, IDiagnosticInformation>
      9     {
     10         DiagnosticInformationInstance() = default;
     11 
     12         void Initialize(DiagnosticLevel level, std::wstring_view message);
     13 
     14         DiagnosticLevel Level();
     15         void Level(DiagnosticLevel value);
     16 
     17         hstring Message();
     18         void Message(const hstring& value);
     19 
     20 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     21     private:
     22         DiagnosticLevel m_level = DiagnosticLevel::Verbose;
     23         hstring m_message;
     24 #endif
     25     };
     26 }