System.Web.HttpContext.GetAppConfig C# (CSharp) Method

GetAppConfig() private method

private GetAppConfig ( string name ) : object
name string
return 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