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
- DetailsViewRow.cs
- SetterTriggerConditionValueConverter.cs
- ProtocolElement.cs
- EntityObject.cs
- DesignOnlyAttribute.cs
- LogReservationCollection.cs
- SiteMapDataSourceDesigner.cs
- DataComponentGenerator.cs
- CompModSwitches.cs
- ConstraintStruct.cs
- RuleRefElement.cs
- SmtpFailedRecipientException.cs
- BinHexDecoder.cs
- SqlTrackingWorkflowInstance.cs
- ObjectDataSourceStatusEventArgs.cs
- InternalControlCollection.cs
- CharEnumerator.cs
- ConfigurationSection.cs
- SettingsAttributes.cs
- SvcMapFileLoader.cs
- StickyNoteAnnotations.cs
- PartManifestEntry.cs
- IndexerNameAttribute.cs
- SessionStateSection.cs
- StringComparer.cs
- InvokeAction.cs
- FloaterBaseParaClient.cs
- PerfCounters.cs
- ITreeGenerator.cs
- GenericAuthenticationEventArgs.cs
- SuppressMessageAttribute.cs
- TabItemWrapperAutomationPeer.cs
- SqlColumnizer.cs
- AnnouncementClient.cs
- ComponentSerializationService.cs
- StickyNote.cs
- DesignerUtility.cs
- AttachedAnnotationChangedEventArgs.cs
- unitconverter.cs
- _ScatterGatherBuffers.cs
- InfoCardSymmetricAlgorithm.cs
- Win32KeyboardDevice.cs
- RequestTimeoutManager.cs
- ProtectedProviderSettings.cs
- ArglessEventHandlerProxy.cs
- ResXFileRef.cs
- ListViewDataItem.cs
- Overlapped.cs
- CodeSpit.cs
- StateMachineWorkflowDesigner.cs
- SoapAttributes.cs
- StickyNoteContentControl.cs
- BaseDataBoundControl.cs
- PropertyConverter.cs
- XmlDataSource.cs
- DbDataSourceEnumerator.cs
- TreeViewCancelEvent.cs
- ReaderWriterLock.cs
- _SafeNetHandles.cs
- TextTreeTextNode.cs
- XmlException.cs
- ObjectViewEntityCollectionData.cs
- ContentFileHelper.cs
- ExpressionPrefixAttribute.cs
- SspiWrapper.cs
- IntersectQueryOperator.cs
- TextServicesCompartmentContext.cs
- PropertyEmitterBase.cs
- regiisutil.cs
- GeneralTransform3DGroup.cs
- ProcessHostMapPath.cs
- DoubleLink.cs
- DbProviderConfigurationHandler.cs
- TemplateXamlParser.cs
- BindingExpressionUncommonField.cs
- SingleStorage.cs
- TreeViewAutomationPeer.cs
- FacetChecker.cs
- DataKeyCollection.cs
- ChangesetResponse.cs
- _LocalDataStoreMgr.cs
- ObjectHandle.cs
- ServiceSecurityAuditElement.cs
- InputScopeConverter.cs
- BulletChrome.cs
- DesignerGeometryHelper.cs
- EnumValAlphaComparer.cs
- SingleStorage.cs
- SevenBitStream.cs
- SharedStatics.cs
- FormViewRow.cs
- TextUtf8RawTextWriter.cs
- ContextMarshalException.cs
- TextServicesDisplayAttribute.cs
- Label.cs
- OracleDataReader.cs
- Int64.cs
- Clock.cs
- XmlChoiceIdentifierAttribute.cs
- SessionPageStatePersister.cs