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
- WpfWebRequestHelper.cs
- AssemblyBuilder.cs
- ResourceProperty.cs
- DashStyle.cs
- XmlLinkedNode.cs
- DirectionalLight.cs
- TimersDescriptionAttribute.cs
- Tokenizer.cs
- LinqDataSourceDeleteEventArgs.cs
- HScrollBar.cs
- XmlC14NWriter.cs
- SplashScreen.cs
- OrderedDictionary.cs
- CustomWebEventKey.cs
- validationstate.cs
- TextAction.cs
- LineBreakRecord.cs
- FixedSOMPageConstructor.cs
- InitializerFacet.cs
- ClientProxyGenerator.cs
- PackageRelationshipCollection.cs
- DetailsViewPageEventArgs.cs
- ItemCollection.cs
- RuleSet.cs
- RegistrySecurity.cs
- ParentQuery.cs
- NullableLongMinMaxAggregationOperator.cs
- EventSourceCreationData.cs
- Validator.cs
- CompositeKey.cs
- HttpListenerResponse.cs
- AppDomainAttributes.cs
- PageBuildProvider.cs
- ComNativeDescriptor.cs
- WebControl.cs
- ApplicationDirectory.cs
- DataGridViewCheckBoxCell.cs
- FixedPageProcessor.cs
- DataGridViewSortCompareEventArgs.cs
- CreateUserWizardStep.cs
- AppDomainProtocolHandler.cs
- ConfigurationProperty.cs
- Metafile.cs
- SamlAssertionKeyIdentifierClause.cs
- LinqDataSourceValidationException.cs
- ImageMetadata.cs
- StdValidatorsAndConverters.cs
- RightsManagementPermission.cs
- MissingFieldException.cs
- SatelliteContractVersionAttribute.cs
- Codec.cs
- StrokeCollectionDefaultValueFactory.cs
- BasePropertyDescriptor.cs
- SHA256Cng.cs
- Storyboard.cs
- Logging.cs
- PeerNearMe.cs
- Compress.cs
- ToolStripEditorManager.cs
- BatchParser.cs
- DynamicPropertyReader.cs
- EngineSiteSapi.cs
- NamespaceTable.cs
- SystemIPv6InterfaceProperties.cs
- ParameterToken.cs
- StylusPointPropertyInfo.cs
- ClientUtils.cs
- XamlClipboardData.cs
- IdleTimeoutMonitor.cs
- XPathNodeIterator.cs
- HtmlElementCollection.cs
- SamlAssertion.cs
- MatchingStyle.cs
- ContextMenu.cs
- SafeSecurityHandles.cs
- HttpApplicationFactory.cs
- RawContentTypeMapper.cs
- FilteredSchemaElementLookUpTable.cs
- InputEventArgs.cs
- Tool.cs
- TextPenaltyModule.cs
- HScrollProperties.cs
- InitializationEventAttribute.cs
- CodePageEncoding.cs
- EventSetter.cs
- StrongNameIdentityPermission.cs
- SettingsBindableAttribute.cs
- DbConnectionFactory.cs
- StaticExtensionConverter.cs
- TagMapInfo.cs
- HtmlEncodedRawTextWriter.cs
- TypedElement.cs
- Lease.cs
- PathData.cs
- LockedHandleGlyph.cs
- UserControl.cs
- SoapTypeAttribute.cs
- BinaryNode.cs
- XmlSchemaAttributeGroupRef.cs
- ReferencedAssemblyResolver.cs