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
- WebHttpBinding.cs
- FaultReasonText.cs
- SplineKeyFrames.cs
- ResourcePermissionBaseEntry.cs
- RecordConverter.cs
- CodeSnippetExpression.cs
- DependencyProperty.cs
- SymmetricCryptoHandle.cs
- SpeechSeg.cs
- ResourceExpression.cs
- WebHttpBindingCollectionElement.cs
- LinkArea.cs
- DeclaredTypeElementCollection.cs
- WeakReferenceKey.cs
- TraceListener.cs
- RelationshipConverter.cs
- ExpressionLexer.cs
- ChannelSinkStacks.cs
- AccessViolationException.cs
- ActionItem.cs
- NonBatchDirectoryCompiler.cs
- FrameworkElementFactory.cs
- DropSource.cs
- KeyProperty.cs
- MessageDecoder.cs
- BindingEditor.xaml.cs
- FtpRequestCacheValidator.cs
- DataGrid.cs
- DiscriminatorMap.cs
- SevenBitStream.cs
- SoapIgnoreAttribute.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- DESCryptoServiceProvider.cs
- XmlAttributeProperties.cs
- Slider.cs
- CalendarButton.cs
- Axis.cs
- ThrowHelper.cs
- XmlSchemaAttributeGroup.cs
- LocationUpdates.cs
- ModuleConfigurationInfo.cs
- Command.cs
- TokenBasedSetEnumerator.cs
- _RequestCacheProtocol.cs
- SendParametersContent.cs
- Geometry3D.cs
- WindowsPrincipal.cs
- GlobalId.cs
- XamlPoint3DCollectionSerializer.cs
- GridViewRow.cs
- UnmanagedBitmapWrapper.cs
- WebPartEditVerb.cs
- SqlTopReducer.cs
- SqlResolver.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ColumnMapVisitor.cs
- WaitForChangedResult.cs
- Attributes.cs
- WebPartVerbCollection.cs
- SignatureToken.cs
- HttpRuntimeSection.cs
- PhysicalOps.cs
- CategoryAttribute.cs
- XamlValidatingReader.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- PreviewPageInfo.cs
- StickyNoteAnnotations.cs
- ECDiffieHellmanPublicKey.cs
- TableLayoutStyleCollection.cs
- CustomTypeDescriptor.cs
- BitmapImage.cs
- StringComparer.cs
- MetadataItemCollectionFactory.cs
- NotifyInputEventArgs.cs
- TCPListener.cs
- HandleExceptionArgs.cs
- StateMachineWorkflowInstance.cs
- SqlDuplicator.cs
- NetworkInterface.cs
- IdnElement.cs
- NamedObject.cs
- SQLDecimalStorage.cs
- KeyTimeConverter.cs
- XmlReturnReader.cs
- AuthenticatedStream.cs
- SerializableAttribute.cs
- DataGridViewSelectedCellCollection.cs
- DtcInterfaces.cs
- SvcFileManager.cs
- SqlProvider.cs
- ShaperBuffers.cs
- Control.cs
- PersonalizationEntry.cs
- Control.cs
- ElapsedEventArgs.cs
- AngleUtil.cs
- HttpCookieCollection.cs
- VectorKeyFrameCollection.cs
- MetadataItemSerializer.cs
- SQLStringStorage.cs