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

GetConfig() private method

private GetConfig ( string name ) : object
name string
return object
		public object GetConfig (string name)
		{
			return GetSection (name);
		}

Usage Example

Example #1
0
        internal static CustomErrors GetSettings(HttpContext context, bool canThrow)
        {
            CustomErrors ce = null;

            if (canThrow)
            {
                ce = (CustomErrors)context.GetConfig("system.web/customErrors");
            }
            else
            {
                ce = (CustomErrors)context.GetLKGConfig("system.web/customErrors");
            }

            if (ce == null)
            {
                if (_default == null)
                {
                    _default = new CustomErrors();
                }

                ce = _default;
            }

            return(ce);
        }
All Usage Examples Of System.Web.HttpContext::GetConfig