Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- XmlNullResolver.cs
- WebBrowserEvent.cs
- EventSetter.cs
- GridEntry.cs
- ItemCheckEvent.cs
- InkCanvasAutomationPeer.cs
- ExtendedProtectionPolicyTypeConverter.cs
- sqlmetadatafactory.cs
- TextTreeTextElementNode.cs
- InfoCardArgumentException.cs
- SqlEnums.cs
- DependencyPropertyKey.cs
- BaseContextMenu.cs
- CommandHelpers.cs
- ServicePrincipalNameElement.cs
- XmlObjectSerializerWriteContext.cs
- WS2007HttpBinding.cs
- VersionPair.cs
- Main.cs
- IERequestCache.cs
- PointF.cs
- UIntPtr.cs
- AddInSegmentDirectoryNotFoundException.cs
- WrappedReader.cs
- Nodes.cs
- ForceCopyBuildProvider.cs
- StylusEditingBehavior.cs
- X509Utils.cs
- BitmapImage.cs
- ServiceHostingEnvironment.cs
- AttributeConverter.cs
- TracePayload.cs
- DateRangeEvent.cs
- AggregateException.cs
- GridViewColumnHeaderAutomationPeer.cs
- ProjectionPlan.cs
- XmlSerializerSection.cs
- SchemaInfo.cs
- ConnectionPoint.cs
- Model3D.cs
- SamlAudienceRestrictionCondition.cs
- ScriptHandlerFactory.cs
- ListMarkerSourceInfo.cs
- AssemblyBuilder.cs
- DefaultAuthorizationContext.cs
- SHA512.cs
- XdrBuilder.cs
- TraceHandler.cs
- OrderByQueryOptionExpression.cs
- XmlSchemaSimpleType.cs
- AlphabetConverter.cs
- MaskedTextBox.cs
- InfiniteTimeSpanConverter.cs
- ChtmlImageAdapter.cs
- SafeFileMappingHandle.cs
- BufferedGraphics.cs
- XXXInfos.cs
- DataGridCommandEventArgs.cs
- ApplicationTrust.cs
- RequestTimeoutManager.cs
- ListBindableAttribute.cs
- Wildcard.cs
- WorkflowRuntimeServiceElementCollection.cs
- regiisutil.cs
- SessionParameter.cs
- WorkflowTransactionOptions.cs
- TextTreeInsertElementUndoUnit.cs
- Helper.cs
- _RequestLifetimeSetter.cs
- ContextMenuService.cs
- XmlValidatingReader.cs
- Soap.cs
- InputLanguage.cs
- MessageBodyDescription.cs
- IApplicationTrustManager.cs
- FactoryGenerator.cs
- ObjectNotFoundException.cs
- SpellerError.cs
- ServiceDocument.cs
- ExpressionNormalizer.cs
- TrackBar.cs
- ApplicationGesture.cs
- DetailsViewAutoFormat.cs
- SqlConnectionHelper.cs
- MailMessage.cs
- StaticExtensionConverter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WindowPattern.cs
- ThemeableAttribute.cs
- DiscoveryDocumentLinksPattern.cs
- DesignerTransactionCloseEvent.cs
- OptionalColumn.cs
- ModelTypeConverter.cs
- PaperSource.cs
- DrawingContextDrawingContextWalker.cs
- SamlSubjectStatement.cs
- BitmapSourceSafeMILHandle.cs
- XmlEntityReference.cs
- ClientOptions.cs
- ControlCachePolicy.cs