Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / WebControlsSection.cs / 2 / 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]; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectRef.cs
- ResetableIterator.cs
- SelfIssuedAuthRSACryptoProvider.cs
- HotSpotCollection.cs
- WebServiceAttribute.cs
- ResolveNameEventArgs.cs
- StylusDownEventArgs.cs
- SignedXml.cs
- AssemblyResourceLoader.cs
- DataGridHelper.cs
- FontStretchConverter.cs
- SchemaMerger.cs
- BreakRecordTable.cs
- WebResourceUtil.cs
- TypedServiceChannelBuilder.cs
- ImageAnimator.cs
- Rule.cs
- GAC.cs
- MessageHeaderAttribute.cs
- KeyEventArgs.cs
- SettingsPropertyNotFoundException.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ResourceCodeDomSerializer.cs
- ProfilePropertySettings.cs
- PropertyManager.cs
- SkewTransform.cs
- EventMappingSettingsCollection.cs
- XmlEntity.cs
- TextDecoration.cs
- WpfPayload.cs
- BaseCAMarshaler.cs
- EditCommandColumn.cs
- SqlDataSourceSelectingEventArgs.cs
- EntityUtil.cs
- OdbcEnvironmentHandle.cs
- TraceHandler.cs
- securitymgrsite.cs
- Int16AnimationUsingKeyFrames.cs
- BehaviorService.cs
- TreeView.cs
- TextParagraphCache.cs
- TemplateApplicationHelper.cs
- ControlBuilder.cs
- SingleTagSectionHandler.cs
- _ScatterGatherBuffers.cs
- SecurityUtils.cs
- TreeViewImageIndexConverter.cs
- TraceSection.cs
- DataGridViewCellCollection.cs
- DataGridViewCellValueEventArgs.cs
- Currency.cs
- Point3DKeyFrameCollection.cs
- KeyGestureConverter.cs
- transactioncontext.cs
- ContentIterators.cs
- ColorBlend.cs
- TiffBitmapEncoder.cs
- TextServicesPropertyRanges.cs
- AssemblyResourceLoader.cs
- RuntimeTrackingProfile.cs
- X509Chain.cs
- RtfToXamlLexer.cs
- RelatedImageListAttribute.cs
- BitmapEffectInput.cs
- AssemblyBuilder.cs
- ListenerConnectionModeReader.cs
- HwndProxyElementProvider.cs
- UpdatePanelTriggerCollection.cs
- ValueUnavailableException.cs
- UserNameSecurityTokenParameters.cs
- MouseActionConverter.cs
- DefaultMemberAttribute.cs
- CommonProperties.cs
- SocketElement.cs
- ActivityMarkupSerializer.cs
- BuiltInExpr.cs
- DataTableExtensions.cs
- CopyOfAction.cs
- BinaryObjectReader.cs
- XmlAttribute.cs
- Journaling.cs
- ImageCodecInfo.cs
- TextLine.cs
- WebBrowserNavigatingEventHandler.cs
- InputGestureCollection.cs
- HandlerWithFactory.cs
- DataPagerFieldCommandEventArgs.cs
- mactripleDES.cs
- RenderingEventArgs.cs
- AssemblyGen.cs
- AuthenticationSection.cs
- CompositeFontParser.cs
- QueryOpcode.cs
- Pick.cs
- DataServiceQueryProvider.cs
- DataBindingList.cs
- _SafeNetHandles.cs
- AsyncStreamReader.cs
- TreeWalker.cs
- AssemblyHash.cs