GetSetting

09/07/2004 - 21:39 por js | Informe spam
Una pregunta..en VB se utiliza el Getsetting para obtener
los valores de una variable del registro de
configuraciones de windows...pero no funciona para
asp.net..hay alguna otra funcion similar?...o como se pude
obtener los valores de estas variables...?
 

Leer las respuestas

#1 Daniel Sharp
12/07/2004 - 03:43 | Informe spam
intentaste utilizar RegistryKey ??

un code snippet de msdn :
// Create a reference to a valid key. For this code to
// work, the indicated subkey must have been created
// previously. The key name is not case-sensitive.
RegistryKey rk Registry.LocalMachine.OpenSubKey("Software\\myTestKey", true);

// Get the data from a specified item in the key.
String s = (String)rk.GetValue("testVal");

Console.WriteLine(s);

// In this case the value does not exist, so the specified
// default value is returned instead.
s = (String)rk.GetValue("notavalue", "The default to return");

Console.WriteLine(s);

P.D: lo encuentras en Microsoft.Win32;

saludos
daniel #

"js" wrote in message
news:2a26101c465ec$840e6680$
Una pregunta..en VB se utiliza el Getsetting para obtener
los valores de una variable del registro de
configuraciones de windows...pero no funciona para
asp.net..hay alguna otra funcion similar?...o como se pude
obtener los valores de estas variables...?

Preguntas similares