Escolar Documentos
Profissional Documentos
Cultura Documentos
Adicionar/ExcluireLerRegistrodoWindowsemC#,simplesedireto.FranckePeixoto'sBlog
Adicionar/ExcluireLer
RegistrodoWindowsem
C#,simplesedireto.
PublicadoporFR AN C KE PEIXO TOon2 0 /0 3 /2 01 0
Comodisse,sersimplesdireto!
GravarnoRegistro
stringPATH = @"SOFTWARE\QX3\ROTAS\Hosts";
RegistryKeyregistryKey =Registry.LocalMachine.CreateSubKey(PATH);
registryKey.SetValue("Servidor SMTP", "192.169.0.121:25");
registryKey.SetValue("Servidor POP", "192.169.0.121:110");
registryKey.Close();
Resgatarvalordomesmo.
RegistryKeyregistryKey =Registry.LocalMachine.OpenSubKey(PATH);
Console.WriteLine(registryKey.GetValue("Servidor POP"));
RemoverChavedoregistro.
Registry.LocalMachine.DeleteSubKey(PATH);
https://franckepeixoto.wordpress.com/2010/03/20/adicionarexcluirelerregistrodowindowsemcsimplesedireto/
1/2
12/02/2016
Adicionar/ExcluireLerRegistrodoWindowsemC#,simplesedireto.FranckePeixoto'sBlog
Simplesedireto!
[]s
https://franckepeixoto.wordpress.com/2010/03/20/adicionarexcluirelerregistrodowindowsemcsimplesedireto/
2/2