Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / WebControlsSection.cs / 2 / WebControlsSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.ComponentModel; using System.Web.Util; using System.Diagnostics; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebControlsSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; #region Property Declarations private static readonly ConfigurationProperty _propClientScriptsLocation = new ConfigurationProperty("clientScriptsLocation", typeof(string), "/aspnet_client/{0}/{1}/", null, StdValidatorsAndConverters.NonEmptyStringValidator, ConfigurationPropertyOptions.IsRequired); #endregion static WebControlsSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propClientScriptsLocation); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } protected override object GetRuntimeObject() { // Legacy section returned a Hashtable and people are depenant on that implimentation. Hashtable runtimeHashTable = new Hashtable(); foreach (ConfigurationProperty prop in Properties) { runtimeHashTable[prop.Name] = base[prop]; } return runtimeHashTable; // return the read only object } [ConfigurationProperty("clientScriptsLocation", IsRequired = true, DefaultValue = "/aspnet_client/{0}/{1}/")] [StringValidator(MinLength = 1)] public string ClientScriptsLocation { get { return (string)base[_propClientScriptsLocation]; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProxySimple.cs
- UnionQueryOperator.cs
- XamlWrapperReaders.cs
- CodeSnippetStatement.cs
- Pipe.cs
- AssemblyCache.cs
- SiteMapSection.cs
- KeyFrames.cs
- BinaryObjectWriter.cs
- XPathNavigatorKeyComparer.cs
- PermissionSetEnumerator.cs
- XmlSchemaGroup.cs
- DateTimeConstantAttribute.cs
- XamlReaderHelper.cs
- LoginCancelEventArgs.cs
- ProjectionPruner.cs
- WebPartDeleteVerb.cs
- Int64Storage.cs
- EditCommandColumn.cs
- AttachmentCollection.cs
- PropertyChangingEventArgs.cs
- SqlDataSourceCustomCommandPanel.cs
- ReliableMessagingVersionConverter.cs
- XPathParser.cs
- RoleGroupCollection.cs
- Icon.cs
- DockPattern.cs
- WeakEventManager.cs
- HWStack.cs
- XsltLibrary.cs
- MD5HashHelper.cs
- Matrix3DStack.cs
- FtpWebRequest.cs
- TagPrefixInfo.cs
- DataBindingCollection.cs
- ResponseStream.cs
- _Connection.cs
- VisualStyleTypesAndProperties.cs
- InboundActivityHelper.cs
- TextDecorationCollectionConverter.cs
- COM2PropertyPageUITypeConverter.cs
- ManagementClass.cs
- TableLayoutSettingsTypeConverter.cs
- ConstNode.cs
- TraceFilter.cs
- FlowLayoutPanel.cs
- ErrorLog.cs
- OracleNumber.cs
- Input.cs
- Html32TextWriter.cs
- DbgCompiler.cs
- UntypedNullExpression.cs
- Query.cs
- ReadOnlyHierarchicalDataSource.cs
- log.cs
- DataListGeneralPage.cs
- AsymmetricKeyExchangeDeformatter.cs
- Zone.cs
- WindowVisualStateTracker.cs
- _Events.cs
- RsaSecurityTokenAuthenticator.cs
- FontStretch.cs
- Configuration.cs
- SqlDependencyListener.cs
- Nullable.cs
- DesignTimeDataBinding.cs
- Parsers.cs
- Point3DConverter.cs
- ComponentConverter.cs
- xml.cs
- LocalValueEnumerator.cs
- MarkupObject.cs
- RequestCachePolicyConverter.cs
- ValidationErrorEventArgs.cs
- FontInfo.cs
- PeerObject.cs
- CompilerTypeWithParams.cs
- CustomWebEventKey.cs
- EditorAttributeInfo.cs
- FunctionMappingTranslator.cs
- EventWaitHandle.cs
- FileSystemWatcher.cs
- CommunicationException.cs
- DeviceContext2.cs
- HtmlTable.cs
- DownloadProgressEventArgs.cs
- OleDbFactory.cs
- CounterSampleCalculator.cs
- MissingSatelliteAssemblyException.cs
- TextLineResult.cs
- SqlRewriteScalarSubqueries.cs
- _SslSessionsCache.cs
- InvalidDataException.cs
- XsdDateTime.cs
- IndexedGlyphRun.cs
- CompositeControl.cs
- ExpressionVisitorHelpers.cs
- ReverseQueryOperator.cs
- XmlnsDefinitionAttribute.cs
- sqlstateclientmanager.cs