Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / WebControlsSection.cs / 1 / 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
- CompiledIdentityConstraint.cs
- Compiler.cs
- DecoderExceptionFallback.cs
- ContentOperations.cs
- FontCacheUtil.cs
- ItemsPresenter.cs
- StringExpressionSet.cs
- LinkClickEvent.cs
- XmlSchemaFacet.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- MenuItemAutomationPeer.cs
- InvariantComparer.cs
- InvalidOperationException.cs
- path.cs
- XPathEmptyIterator.cs
- SerializationInfo.cs
- SelectedGridItemChangedEvent.cs
- XmlSchemaAttribute.cs
- SortFieldComparer.cs
- CompoundFileIOPermission.cs
- MarkupCompilePass2.cs
- EntityDataSourceWrapper.cs
- ArithmeticException.cs
- ActivityBindForm.cs
- InteropBitmapSource.cs
- GenericTextProperties.cs
- PagesChangedEventArgs.cs
- EndpointDiscoveryMetadataCD1.cs
- ListenDesigner.cs
- ColumnCollectionEditor.cs
- ActivityDesignerResources.cs
- __Filters.cs
- GB18030Encoding.cs
- VScrollProperties.cs
- HttpConfigurationSystem.cs
- UserThread.cs
- AnchoredBlock.cs
- WebPartsPersonalization.cs
- KeyInfo.cs
- DesignerLoader.cs
- PopupRootAutomationPeer.cs
- EntityDataSourceWizardForm.cs
- ViewBox.cs
- TypeConverterHelper.cs
- TypeForwardedToAttribute.cs
- Border.cs
- JsonStringDataContract.cs
- DataListItem.cs
- WpfXamlType.cs
- WebPartDisplayMode.cs
- InternalCache.cs
- XmlDataLoader.cs
- DivideByZeroException.cs
- MemoryRecordBuffer.cs
- WebEncodingValidator.cs
- GeneralTransform3DTo2DTo3D.cs
- MemberPath.cs
- HyperLinkColumn.cs
- TraceContextRecord.cs
- WebDescriptionAttribute.cs
- Switch.cs
- ICspAsymmetricAlgorithm.cs
- MediaScriptCommandRoutedEventArgs.cs
- CodeComment.cs
- ImageDrawing.cs
- PreparingEnlistment.cs
- ParserContext.cs
- LOSFormatter.cs
- AllMembershipCondition.cs
- HttpDebugHandler.cs
- SizeAnimationClockResource.cs
- MaterialCollection.cs
- AsyncDataRequest.cs
- CatalogPart.cs
- VisualStyleTypesAndProperties.cs
- RandomNumberGenerator.cs
- CssClassPropertyAttribute.cs
- NavigateEvent.cs
- MatrixIndependentAnimationStorage.cs
- OleServicesContext.cs
- Script.cs
- EventLogHandle.cs
- NetMsmqBindingCollectionElement.cs
- DesignOnlyAttribute.cs
- StatusBarDrawItemEvent.cs
- DbMetaDataFactory.cs
- StaticResourceExtension.cs
- PageThemeCodeDomTreeGenerator.cs
- Margins.cs
- PaintValueEventArgs.cs
- SourceFileBuildProvider.cs
- TypeLoadException.cs
- ControlOperationInvoker.cs
- Color.cs
- EventListener.cs
- ListControl.cs
- PeerObject.cs
- TextBoxLine.cs
- ResourceDefaultValueAttribute.cs
- SafeArrayTypeMismatchException.cs