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
- ErrorHandler.cs
- AsyncOperation.cs
- CollectionBase.cs
- BooleanExpr.cs
- RuntimeResourceSet.cs
- WhitespaceRuleLookup.cs
- UriWriter.cs
- UserPreferenceChangingEventArgs.cs
- RuntimeArgumentHandle.cs
- LayoutDump.cs
- EFAssociationProvider.cs
- BaseCodeDomTreeGenerator.cs
- ContentPlaceHolder.cs
- TreeView.cs
- PublisherMembershipCondition.cs
- ContextStaticAttribute.cs
- PseudoWebRequest.cs
- MergeFailedEvent.cs
- HMACMD5.cs
- ToolStripSplitStackLayout.cs
- WebPartZoneBase.cs
- COSERVERINFO.cs
- FrameworkElement.cs
- SqlXml.cs
- X509ChainElement.cs
- DataControlCommands.cs
- ItemsChangedEventArgs.cs
- _Events.cs
- XmlSecureResolver.cs
- IListConverters.cs
- HttpResponse.cs
- DatatypeImplementation.cs
- BStrWrapper.cs
- StateMachineWorkflow.cs
- TextSpanModifier.cs
- FullTextBreakpoint.cs
- ReceiveSecurityHeaderEntry.cs
- RNGCryptoServiceProvider.cs
- documentsequencetextpointer.cs
- XmlSchemaSimpleContentRestriction.cs
- Math.cs
- StateBag.cs
- Decimal.cs
- ToolStripSplitButton.cs
- TimeoutException.cs
- NumericExpr.cs
- OrderByBuilder.cs
- RtfControlWordInfo.cs
- AuthenticatedStream.cs
- SmtpNetworkElement.cs
- GridPatternIdentifiers.cs
- _SecureChannel.cs
- Rotation3DAnimationUsingKeyFrames.cs
- CopyAction.cs
- MarkupExtensionParser.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- PKCS1MaskGenerationMethod.cs
- HtmlToClrEventProxy.cs
- Table.cs
- XmlSignificantWhitespace.cs
- IFormattable.cs
- DrawingCollection.cs
- SchemaConstraints.cs
- BaseParaClient.cs
- ISessionStateStore.cs
- TempFiles.cs
- NameSpaceExtractor.cs
- dataprotectionpermission.cs
- RelationshipConstraintValidator.cs
- SmtpCommands.cs
- FlowStep.cs
- StateMachineWorkflowInstance.cs
- ResizeGrip.cs
- TypedTableBase.cs
- _AutoWebProxyScriptEngine.cs
- TypeToken.cs
- NumberSubstitution.cs
- BinaryFormatterWriter.cs
- Marshal.cs
- Ref.cs
- RouteParametersHelper.cs
- EdmType.cs
- KnownTypesProvider.cs
- BamlTreeUpdater.cs
- SettingsPropertyValueCollection.cs
- XmlTextAttribute.cs
- DataKey.cs
- XPathLexer.cs
- PopupRootAutomationPeer.cs
- SemanticBasicElement.cs
- MgmtConfigurationRecord.cs
- COM2FontConverter.cs
- ChannelFactoryRefCache.cs
- ObjectDataSource.cs
- MarkupWriter.cs
- Header.cs
- DispatchWrapper.cs
- ContextConfiguration.cs
- RC2CryptoServiceProvider.cs
- Listbox.cs