Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Reflection;
- namespace Recetas.Cap03
- {
- internal class UsoGetData
- {
- public static string[] propiedadesIntegradas = {
- "APP_CONFIG_FILE", "APP_NAME", "APPBASE", "APP_CONFIG_BLOB",
- "BINPATH_PROBE_ONLY", "CACHE_BASE", "CODE_DOWNLOAD_DISABLED", "DEV_PATH",
- "DYNAMIC_BASE", "DISALLOW_APP", "DISALLOW_APP_REDIRECTS", "DISALLOW_APP_BASE_PROBING",
- "FORCE_CACHE_INSTALL", "LICENSE_FILE", "PRIVATE_BINPATH", "SHADOW_COPY_DIRS"
- };
- public static void Main()
- {
- // Utilicemos el dominio de aplicación actual
- // para descubrir sus propiedades:
- AppDomain dominioAnfitrion = AppDomain.CurrentDomain;
- Console.WriteLine("\nValores predeterminados de las propiedades del dominio anfitrión:");
- foreach (string propiedad in propiedadesIntegradas)
- {
- Console.WriteLine("\t`{0}` = {1}", propiedad, dominioAnfitrion.GetData(propiedad));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement