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
- OleDbSchemaGuid.cs
- OleDbFactory.cs
- NetStream.cs
- DbProviderFactories.cs
- MetadataCache.cs
- ObjectDataSource.cs
- VariableBinder.cs
- TreeChangeInfo.cs
- SrgsDocumentParser.cs
- Decoder.cs
- ConfigurationStrings.cs
- BooleanExpr.cs
- ObjectQueryExecutionPlan.cs
- SafeNativeMethods.cs
- DialogWindow.cs
- linebase.cs
- AssemblyResourceLoader.cs
- QuaternionRotation3D.cs
- ListBindableAttribute.cs
- Brush.cs
- AVElementHelper.cs
- ParameterBuilder.cs
- KoreanLunisolarCalendar.cs
- Attributes.cs
- ExpandSegmentCollection.cs
- GenericIdentity.cs
- XmlDataFileEditor.cs
- InvokePatternIdentifiers.cs
- CaseInsensitiveOrdinalStringComparer.cs
- UriParserTemplates.cs
- CollectionViewProxy.cs
- DataGridViewCellStyle.cs
- SmiConnection.cs
- XappLauncher.cs
- HttpTransportBindingElement.cs
- CardSpacePolicyElement.cs
- CopyCodeAction.cs
- PersistChildrenAttribute.cs
- DataGridViewCheckBoxCell.cs
- PostBackOptions.cs
- AlphaSortedEnumConverter.cs
- HandleCollector.cs
- RowCache.cs
- CatchDesigner.xaml.cs
- ThreadPool.cs
- RewritingPass.cs
- InvalidFilterCriteriaException.cs
- ListItemConverter.cs
- DirectoryInfo.cs
- EventLogRecord.cs
- DBConnectionString.cs
- XmlIlTypeHelper.cs
- NullableConverter.cs
- Stack.cs
- TextRangeAdaptor.cs
- HtmlProps.cs
- KeyValueConfigurationElement.cs
- TabletDevice.cs
- AudioFormatConverter.cs
- TypeInitializationException.cs
- UnknownExceptionActionHelper.cs
- DataControlPagerLinkButton.cs
- XmlSchemaSimpleContentExtension.cs
- ReceiveContext.cs
- XmlLinkedNode.cs
- PositiveTimeSpanValidator.cs
- Propagator.JoinPropagator.cs
- EdmMember.cs
- QueryServiceConfigHandle.cs
- IdentitySection.cs
- ArgumentOutOfRangeException.cs
- DefaultValidator.cs
- IDReferencePropertyAttribute.cs
- SystemWebSectionGroup.cs
- VoiceObjectToken.cs
- ServiceOperationInfoTypeConverter.cs
- QuotaExceededException.cs
- KeySpline.cs
- NullReferenceException.cs
- ExceptionRoutedEventArgs.cs
- FunctionImportMapping.cs
- MD5.cs
- UpdateManifestForBrowserApplication.cs
- QueryResults.cs
- EnumerationRangeValidationUtil.cs
- ObjectAnimationUsingKeyFrames.cs
- PackageRelationshipCollection.cs
- ResourcePermissionBase.cs
- InputMethod.cs
- RC2CryptoServiceProvider.cs
- ClientData.cs
- ProcessHostConfigUtils.cs
- EventProviderWriter.cs
- Root.cs
- Method.cs
- OperationResponse.cs
- followingsibling.cs
- DateTimeUtil.cs
- AnnotationStore.cs
- CrossContextChannel.cs