Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / WebControlsSection.cs / 1305376 / 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; 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]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlAttributeHolder.cs
- JsonMessageEncoderFactory.cs
- UnaryNode.cs
- UnhandledExceptionEventArgs.cs
- BamlCollectionHolder.cs
- documentsequencetextcontainer.cs
- EntityDataSourceStatementEditor.cs
- ObjectConverter.cs
- MdImport.cs
- Activity.cs
- sitestring.cs
- CustomAttributeFormatException.cs
- SmiXetterAccessMap.cs
- PrePostDescendentsWalker.cs
- RegexTree.cs
- DataControlPagerLinkButton.cs
- XamlGridLengthSerializer.cs
- MessageDecoder.cs
- ObjectAnimationUsingKeyFrames.cs
- RootNamespaceAttribute.cs
- Model3D.cs
- QuotedStringFormatReader.cs
- SQLInt32.cs
- GenericsInstances.cs
- ToolboxComponentsCreatedEventArgs.cs
- NamespaceInfo.cs
- SystemEvents.cs
- ClosableStream.cs
- NamedPipeConnectionPool.cs
- SubstitutionResponseElement.cs
- TypedRowHandler.cs
- DataViewManagerListItemTypeDescriptor.cs
- NetworkStream.cs
- entitydatasourceentitysetnameconverter.cs
- ObjectDataSourceFilteringEventArgs.cs
- PositiveTimeSpanValidator.cs
- FunctionDescription.cs
- HitTestWithPointDrawingContextWalker.cs
- _RequestLifetimeSetter.cs
- EdmComplexPropertyAttribute.cs
- BitmapEffectDrawingContextWalker.cs
- FormsAuthenticationUserCollection.cs
- WebServiceParameterData.cs
- WebPartExportVerb.cs
- _LazyAsyncResult.cs
- ReadOnlyNameValueCollection.cs
- BuildManagerHost.cs
- ContextMenu.cs
- InlineUIContainer.cs
- HttpResponseHeader.cs
- SettingsProviderCollection.cs
- RSAOAEPKeyExchangeFormatter.cs
- CompressEmulationStream.cs
- CompoundFileReference.cs
- ControlCommandSet.cs
- InheritanceContextChangedEventManager.cs
- _SslSessionsCache.cs
- BindableTemplateBuilder.cs
- WebPartTracker.cs
- DesignTimeType.cs
- FieldNameLookup.cs
- MetadataArtifactLoaderCompositeFile.cs
- ModifiableIteratorCollection.cs
- TypeUnloadedException.cs
- RoleManagerEventArgs.cs
- RequiredFieldValidator.cs
- AssemblyUtil.cs
- ExtenderControl.cs
- ComponentManagerBroker.cs
- TemplateControl.cs
- XhtmlMobileTextWriter.cs
- TimeSpanOrInfiniteConverter.cs
- ResourceProviderFactory.cs
- wgx_commands.cs
- RoleManagerEventArgs.cs
- SupportsEventValidationAttribute.cs
- tabpagecollectioneditor.cs
- ContentPropertyAttribute.cs
- EntityViewGenerator.cs
- ColorTransform.cs
- DetailsViewModeEventArgs.cs
- EndpointIdentityExtension.cs
- SettingsProperty.cs
- FixedDocumentPaginator.cs
- TextOptionsInternal.cs
- ReadOnlyNameValueCollection.cs
- MarginsConverter.cs
- PersonalizationStateQuery.cs
- ExpressionNormalizer.cs
- AutomationPropertyInfo.cs
- OutputCacheProviderCollection.cs
- SiteMapNodeItemEventArgs.cs
- MediaPlayerState.cs
- SynchronizationLockException.cs
- ThumbAutomationPeer.cs
- ResourceReferenceExpressionConverter.cs
- IfAction.cs
- ConfigurationSection.cs
- BitmapSourceSafeMILHandle.cs
- UnsafeNativeMethods.cs