Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- JsonFormatWriterGenerator.cs
- CodeIdentifiers.cs
- CompiledAction.cs
- PerformanceCounterScope.cs
- BaseValidator.cs
- TreeBuilder.cs
- AsyncWaitHandle.cs
- TreeViewAutomationPeer.cs
- CodeDomLoader.cs
- AmbientLight.cs
- ResourcePermissionBaseEntry.cs
- NativeMethods.cs
- WindowsFormsLinkLabel.cs
- BackStopAuthenticationModule.cs
- HtmlContainerControl.cs
- AnnotationAuthorChangedEventArgs.cs
- BreakSafeBase.cs
- TemplateBindingExtensionConverter.cs
- MsmqNonTransactedPoisonHandler.cs
- invalidudtexception.cs
- MiniCustomAttributeInfo.cs
- RuleSettings.cs
- activationcontext.cs
- ButtonFlatAdapter.cs
- SecurityVersion.cs
- WhereQueryOperator.cs
- LookupNode.cs
- ToolStripItemEventArgs.cs
- PropertyStore.cs
- documentation.cs
- BitmapData.cs
- DesignerContextDescriptor.cs
- ServiceBusyException.cs
- BridgeDataReader.cs
- EntityDataSourceDesignerHelper.cs
- InstanceDataCollectionCollection.cs
- IBuiltInEvidence.cs
- RoleGroupCollection.cs
- SHA1Managed.cs
- EntityProviderFactory.cs
- WebDescriptionAttribute.cs
- GridViewSelectEventArgs.cs
- SqlGatherProducedAliases.cs
- HttpHandlerActionCollection.cs
- XmlWellformedWriter.cs
- XmlReader.cs
- WSSecureConversation.cs
- ToolStripDesignerUtils.cs
- CompoundFileReference.cs
- SystemIcmpV6Statistics.cs
- GACMembershipCondition.cs
- ToolboxCategory.cs
- FontInfo.cs
- NativeWindow.cs
- KeyValuePair.cs
- SiteIdentityPermission.cs
- CounterSampleCalculator.cs
- ListViewItem.cs
- DummyDataSource.cs
- DataGridColumnReorderingEventArgs.cs
- X509Certificate2.cs
- UpDownBase.cs
- CharacterHit.cs
- DataGridViewUtilities.cs
- WindowVisualStateTracker.cs
- Stroke.cs
- TargetInvocationException.cs
- DataControlPagerLinkButton.cs
- XmlSchemaAnnotated.cs
- BuildProviderUtils.cs
- ProcessDesigner.cs
- Schedule.cs
- InProcStateClientManager.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- GridView.cs
- SettingsPropertyCollection.cs
- LinkClickEvent.cs
- UInt32.cs
- HttpPostLocalhostServerProtocol.cs
- SmtpReplyReaderFactory.cs
- TrackingDataItemValue.cs
- ExpressionBuilder.cs
- Binding.cs
- storepermissionattribute.cs
- BinaryCommonClasses.cs
- EndpointDiscoveryBehavior.cs
- WebPermission.cs
- ReachNamespaceInfo.cs
- ContractAdapter.cs
- TextContainer.cs
- OneOf.cs
- FontResourceCache.cs
- EventMappingSettings.cs
- SerializationObjectManager.cs
- AxParameterData.cs
- CodeSubDirectory.cs
- SchemaMerger.cs
- EntitySet.cs
- EntityDataSourceWrapperCollection.cs
- XmlAttributeAttribute.cs