Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Configuration / WebControlsSection.cs / 5 / 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]; } } } } // 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; [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]; } } } } // 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
- KeyboardInputProviderAcquireFocusEventArgs.cs
- GridViewAutomationPeer.cs
- ArrangedElement.cs
- TraceProvider.cs
- MSAAWinEventWrap.cs
- RectKeyFrameCollection.cs
- RuntimeHandles.cs
- CacheVirtualItemsEvent.cs
- ProgramPublisher.cs
- Byte.cs
- connectionpool.cs
- AnnotationAdorner.cs
- Error.cs
- XPathScanner.cs
- RenderCapability.cs
- BooleanStorage.cs
- ConnectionManagementSection.cs
- TrustLevel.cs
- Calendar.cs
- InfiniteIntConverter.cs
- BufferBuilder.cs
- XmlSchemaSimpleContentExtension.cs
- ColorConvertedBitmap.cs
- Int32CollectionConverter.cs
- DbProviderFactoriesConfigurationHandler.cs
- ConstNode.cs
- HttpChannelFactory.cs
- RightsManagementEncryptedStream.cs
- SelectionRange.cs
- ProcessInfo.cs
- DictionarySurrogate.cs
- HitTestResult.cs
- ImageBrush.cs
- DataGridState.cs
- ProcessModelSection.cs
- ListBoxAutomationPeer.cs
- PermissionAttributes.cs
- HMACSHA384.cs
- JsonReaderWriterFactory.cs
- ErrorHandler.cs
- DNS.cs
- Conditional.cs
- LogFlushAsyncResult.cs
- StoryFragments.cs
- SqlNamer.cs
- ListItemCollection.cs
- MdiWindowListItemConverter.cs
- DtcInterfaces.cs
- GetRecipientRequest.cs
- Thickness.cs
- DictionaryEntry.cs
- ServiceOperationParameter.cs
- InstanceHandleConflictException.cs
- Permission.cs
- Compiler.cs
- Point4DConverter.cs
- TypeExtension.cs
- AddingNewEventArgs.cs
- ScrollEventArgs.cs
- TreeViewEvent.cs
- ExceptionUtil.cs
- WaitForChangedResult.cs
- ValueProviderWrapper.cs
- InternalControlCollection.cs
- HyperLinkStyle.cs
- ProcessModuleDesigner.cs
- WebPartMovingEventArgs.cs
- SerializationException.cs
- FileUtil.cs
- SecureUICommand.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DocumentSchemaValidator.cs
- DelegatingTypeDescriptionProvider.cs
- MSAAWinEventWrap.cs
- HyperLinkDesigner.cs
- TimeSpanConverter.cs
- MetadataStore.cs
- ToolStripContentPanel.cs
- CodeCompileUnit.cs
- IndentedTextWriter.cs
- ExpressionWriter.cs
- ListViewUpdateEventArgs.cs
- HotSpot.cs
- XmlSerializerSection.cs
- DuplicateWaitObjectException.cs
- X509Certificate2.cs
- OdbcPermission.cs
- SolidColorBrush.cs
- SoapSchemaImporter.cs
- LicenseProviderAttribute.cs
- RegistrySecurity.cs
- ScriptBehaviorDescriptor.cs
- TransportElement.cs
- AddInPipelineAttributes.cs
- securestring.cs
- SystemIcons.cs
- SHA512.cs
- XmlCustomFormatter.cs
- figurelengthconverter.cs
- ACE.cs