Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Interlocked.cs
- WindowsListViewSubItem.cs
- OleDbInfoMessageEvent.cs
- InvalidAsynchronousStateException.cs
- TableHeaderCell.cs
- FolderBrowserDialogDesigner.cs
- ConfigurationException.cs
- ItemCheckEvent.cs
- PersonalizationEntry.cs
- AppDomainUnloadedException.cs
- Canvas.cs
- ActiveXHelper.cs
- QilParameter.cs
- RectAnimationClockResource.cs
- SafeEventLogWriteHandle.cs
- XmlNodeChangedEventArgs.cs
- TypeElement.cs
- SqlStream.cs
- BrowserCapabilitiesFactoryBase.cs
- InstanceDataCollection.cs
- Selection.cs
- AccessedThroughPropertyAttribute.cs
- X509Certificate.cs
- RowParagraph.cs
- CustomError.cs
- KeyTimeConverter.cs
- SqlCacheDependency.cs
- UniqueID.cs
- RegexGroupCollection.cs
- QueryResults.cs
- Stream.cs
- DependencyPropertyKey.cs
- DefaultCommandExtensionCallback.cs
- IdentifierService.cs
- ValidationResults.cs
- PageAsyncTaskManager.cs
- CounterCreationDataCollection.cs
- RectAnimationClockResource.cs
- EntityCollection.cs
- SynchronousSendBindingElement.cs
- EditorBrowsableAttribute.cs
- InstanceHandleReference.cs
- Row.cs
- QueryableDataSourceView.cs
- StreamReader.cs
- TypeHelpers.cs
- PageAsyncTaskManager.cs
- StylusPoint.cs
- ContractMapping.cs
- TemplateModeChangedEventArgs.cs
- WebDescriptionAttribute.cs
- DataGridViewComboBoxEditingControl.cs
- InfoCardXmlSerializer.cs
- XPathConvert.cs
- XpsSerializationManagerAsync.cs
- GlobalId.cs
- BaseTemplateParser.cs
- XmlNodeChangedEventManager.cs
- PointLightBase.cs
- MarkupCompilePass2.cs
- PageWrapper.cs
- OdbcParameter.cs
- SafeLocalMemHandle.cs
- SelectionHighlightInfo.cs
- GeneralTransform3DGroup.cs
- SerializableAttribute.cs
- HttpInputStream.cs
- XmlElementAttributes.cs
- PipelineModuleStepContainer.cs
- MultiDataTrigger.cs
- DesignRelationCollection.cs
- SqlVersion.cs
- IDReferencePropertyAttribute.cs
- NetworkAddressChange.cs
- EnumMemberAttribute.cs
- DataSourceSelectArguments.cs
- SinglePhaseEnlistment.cs
- SplayTreeNode.cs
- EntityStoreSchemaFilterEntry.cs
- InterleavedZipPartStream.cs
- SchemaTypeEmitter.cs
- StickyNote.cs
- GrammarBuilderDictation.cs
- AsymmetricSecurityBindingElement.cs
- SqlTriggerContext.cs
- SqlReferenceCollection.cs
- Logging.cs
- MD5HashHelper.cs
- ThicknessAnimationBase.cs
- ServiceOperationInvoker.cs
- DataGridParentRows.cs
- TreeNodeClickEventArgs.cs
- MasterPage.cs
- ConvertTextFrag.cs
- ThreadStartException.cs
- DefaultValueConverter.cs
- GenericsInstances.cs
- DispatcherSynchronizationContext.cs
- QuaternionRotation3D.cs
- AutoGeneratedFieldProperties.cs