System.Web.HttpContext.GetAppConfig C# (CSharp) 메소드

GetAppConfig() 개인적인 메소드

private GetAppConfig ( string name ) : object
name string
리턴 object
		public static object GetAppConfig (string name)
		{
			object o = ConfigurationSettings.GetConfig (name);

			return o;
		}

Usage Example

예제 #1
0
        static BaseResponseHeader()
        {
#if NET_2_0
            HttpRuntimeSection section = WebConfigurationManager.GetWebApplicationSection("system.web/httpRuntime") as HttpRuntimeSection;
#else
            HttpRuntimeConfig section = HttpContext.GetAppConfig("system.web/httpRuntime") as HttpRuntimeConfig;
#endif
            headerCheckingEnabled = section == null || section.EnableHeaderChecking;
        }
All Usage Examples Of System.Web.HttpContext::GetAppConfig