System.Web.Configuration.WebConfigurationHost.GetConfigType C# (CSharp) Method

GetConfigType() public method

public GetConfigType ( string typeName, bool throwOnError ) : Type
typeName string
throwOnError bool
return System.Type
		public virtual Type GetConfigType (string typeName, bool throwOnError)
		{
		        Type type = HttpApplication.LoadType (typeName);
			if (type == null && throwOnError)
				throw new ConfigurationErrorsException ("Type not found: '" + typeName + "'");
			return type;
		}