DiagnosticInformationInstance.cpp (815B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #include "pch.h" 4 #include "DiagnosticInformationInstance.h" 5 6 namespace winrt::Microsoft::Management::Configuration::implementation 7 { 8 void DiagnosticInformationInstance::Initialize(DiagnosticLevel level, std::wstring_view message) 9 { 10 m_level = level; 11 m_message = message; 12 } 13 14 DiagnosticLevel DiagnosticInformationInstance::Level() 15 { 16 return m_level; 17 } 18 19 void DiagnosticInformationInstance::Level(DiagnosticLevel value) 20 { 21 m_level = value; 22 } 23 24 hstring DiagnosticInformationInstance::Message() 25 { 26 return m_message; 27 } 28 29 void DiagnosticInformationInstance::Message(const hstring& value) 30 { 31 m_message = value; 32 } 33 }