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
- HashCodeCombiner.cs
- HtmlAnchor.cs
- RTLAwareMessageBox.cs
- HostingEnvironment.cs
- ProfileGroupSettingsCollection.cs
- RadioButtonBaseAdapter.cs
- CorrelationActionMessageFilter.cs
- ObjectStateFormatter.cs
- SharedStatics.cs
- AttributedMetaModel.cs
- Rijndael.cs
- SqlSelectClauseBuilder.cs
- DocobjHost.cs
- IgnoreDataMemberAttribute.cs
- UniqueID.cs
- NotificationContext.cs
- AtomContentProperty.cs
- DeviceOverridableAttribute.cs
- AppDomainUnloadedException.cs
- Unit.cs
- RelOps.cs
- CatalogPartDesigner.cs
- NavigationWindow.cs
- CompilerGlobalScopeAttribute.cs
- ToolboxComponentsCreatedEventArgs.cs
- SqlRowUpdatedEvent.cs
- Win32Interop.cs
- GacUtil.cs
- SpeechSynthesizer.cs
- WorkflowDataContext.cs
- MonitorWrapper.cs
- CodeCastExpression.cs
- ObjectListFieldCollection.cs
- TaskResultSetter.cs
- Region.cs
- PeerNameResolver.cs
- XmlQueryTypeFactory.cs
- ByeOperationAsyncResult.cs
- ConfigurationStrings.cs
- Variant.cs
- LambdaCompiler.Unary.cs
- ADMembershipUser.cs
- CFStream.cs
- WorkflowRuntimeServiceElementCollection.cs
- ControlCodeDomSerializer.cs
- JulianCalendar.cs
- ModelUtilities.cs
- ComContractElement.cs
- MsmqTransportSecurityElement.cs
- TimeEnumHelper.cs
- ToolStripDesigner.cs
- ContentHostHelper.cs
- TypeDescriptionProviderAttribute.cs
- SafeTokenHandle.cs
- ApplicationTrust.cs
- ToggleButtonAutomationPeer.cs
- DbDataAdapter.cs
- XsdBuilder.cs
- AutomationTextAttribute.cs
- AnimationClockResource.cs
- ConfigurationSectionGroup.cs
- SystemFonts.cs
- FactoryRecord.cs
- AnnotationDocumentPaginator.cs
- ComplexBindingPropertiesAttribute.cs
- RequestTimeoutManager.cs
- XmlSchemaType.cs
- AddingNewEventArgs.cs
- TreeNode.cs
- TextEditorCharacters.cs
- EntityCollection.cs
- PathData.cs
- ArraySet.cs
- IntSecurity.cs
- NonVisualControlAttribute.cs
- SplitterEvent.cs
- WebPartVerb.cs
- CacheSection.cs
- RelationshipConverter.cs
- NamedObject.cs
- webeventbuffer.cs
- InvokePattern.cs
- _NtlmClient.cs
- WebColorConverter.cs
- SRDisplayNameAttribute.cs
- TimeSpan.cs
- PixelShader.cs
- ContractListAdapter.cs
- PolicyLevel.cs
- RawStylusInput.cs
- HuffModule.cs
- FunctionImportMapping.cs
- ProjectionPathSegment.cs
- HtmlObjectListAdapter.cs
- TagNameToTypeMapper.cs
- WinCategoryAttribute.cs
- CookieProtection.cs
- FixedTextContainer.cs
- UidManager.cs
- HtmlDocument.cs