Registry - ler e gravar

<< Click to Display Table of Contents >>

Navigation:  Desktop >

Registry - ler e gravar

Previous pageReturn to chapter overviewNext page

using Microsoft.Win32;

 

// Ler

string config = Convert.ToString(Registry.GetValue(CHAVE_REGISTRO, "config", string.Empty));

 

// gravar

Registry.SetValue(CHAVE_REGISTRO, "config", cbConfig.Text);