Code:
/ DotNET / DotNET / 8.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
- XmlLanguage.cs
- TreeNodeConverter.cs
- MailWriter.cs
- TdsParserHelperClasses.cs
- PerfService.cs
- TextTreeNode.cs
- RawTextInputReport.cs
- EventSinkHelperWriter.cs
- Expander.cs
- ConfigPathUtility.cs
- AnonymousIdentificationModule.cs
- MobileTextWriter.cs
- TypeDescriptor.cs
- OleDbException.cs
- SiteMapDataSource.cs
- FlowDocumentScrollViewer.cs
- RegexBoyerMoore.cs
- TheQuery.cs
- ItemCheckEvent.cs
- WorkItem.cs
- BamlResourceDeserializer.cs
- PoisonMessageException.cs
- MergeLocalizationDirectives.cs
- Int16.cs
- XmlSchemaInclude.cs
- ContainerVisual.cs
- EntityDesignerDataSourceView.cs
- ParameterModifier.cs
- GenericQueueSurrogate.cs
- TypeExtensions.cs
- SchemaCollectionPreprocessor.cs
- CompositeFontFamily.cs
- Decimal.cs
- ColorAnimationUsingKeyFrames.cs
- DBCommandBuilder.cs
- SQLByteStorage.cs
- ReadOnlyHierarchicalDataSourceView.cs
- _DigestClient.cs
- ButtonDesigner.cs
- DesignerHelpers.cs
- Exceptions.cs
- CanExecuteRoutedEventArgs.cs
- DataControlPagerLinkButton.cs
- Effect.cs
- DataBoundControlAdapter.cs
- SessionStateSection.cs
- ResourcePart.cs
- ItemsChangedEventArgs.cs
- ErrorTableItemStyle.cs
- MetadataUtilsSmi.cs
- TraceSwitch.cs
- HMACSHA512.cs
- elementinformation.cs
- WebPartUserCapability.cs
- AliasedSlot.cs
- ResourcesBuildProvider.cs
- _SecureChannel.cs
- FamilyTypeface.cs
- BaseHashHelper.cs
- SystemException.cs
- ConversionContext.cs
- SQLSingle.cs
- ModulesEntry.cs
- BitmapEffectInputConnector.cs
- HttpFileCollection.cs
- Comparer.cs
- X509Extension.cs
- GridViewUpdateEventArgs.cs
- CaseInsensitiveComparer.cs
- SamlAction.cs
- InlineCollection.cs
- MoveSizeWinEventHandler.cs
- DropTarget.cs
- SystemResourceHost.cs
- LongTypeConverter.cs
- ObjectConverter.cs
- CodeMemberField.cs
- ConditionalAttribute.cs
- UserNameSecurityTokenProvider.cs
- NullableConverter.cs
- HtmlTableRow.cs
- BindingExpressionUncommonField.cs
- DelegatingTypeDescriptionProvider.cs
- ObjectViewQueryResultData.cs
- ItemMap.cs
- DataSourceCollectionBase.cs
- RepeaterCommandEventArgs.cs
- EntityDataSourceSelectedEventArgs.cs
- compensatingcollection.cs
- GroupQuery.cs
- HtmlHead.cs
- ImageField.cs
- CodeTypeMember.cs
- NetNamedPipeBindingElement.cs
- OleDbConnection.cs
- FormViewModeEventArgs.cs
- QilUnary.cs
- _DisconnectOverlappedAsyncResult.cs
- XmlMtomWriter.cs
- PenThreadPool.cs