Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlUrlResolver.cs
- TraceContext.cs
- NeedSkipTokenVisitor.cs
- WorkflowEventArgs.cs
- SubMenuStyle.cs
- PictureBox.cs
- DocumentApplicationJournalEntry.cs
- SettingsBase.cs
- InvokePattern.cs
- DataSourceSerializationException.cs
- BookmarkManager.cs
- AuthenticationSchemesHelper.cs
- DragDeltaEventArgs.cs
- ParserContext.cs
- __Filters.cs
- RbTree.cs
- XmlSchemaAll.cs
- SecurityContext.cs
- WebPartMovingEventArgs.cs
- XmlAttributeCache.cs
- GrammarBuilderPhrase.cs
- ObjectConverter.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- Column.cs
- Point.cs
- EmptyEnumerator.cs
- DtrList.cs
- SafeCoTaskMem.cs
- SortKey.cs
- ApplicationGesture.cs
- StrokeNode.cs
- RequestResponse.cs
- DataObjectFieldAttribute.cs
- HashHelpers.cs
- LookupNode.cs
- Context.cs
- EntityAdapter.cs
- BufferedMessageWriter.cs
- XmlSchemaInfo.cs
- ReferentialConstraint.cs
- XmlSchemaObjectCollection.cs
- ModuleConfigurationInfo.cs
- DbDeleteCommandTree.cs
- Utils.cs
- ActivityPreviewDesigner.cs
- WorkflowRuntimeService.cs
- XD.cs
- NamespaceDecl.cs
- BasicViewGenerator.cs
- IDQuery.cs
- CrossSiteScriptingValidation.cs
- CharKeyFrameCollection.cs
- DataGridViewCheckBoxColumn.cs
- EntityContainerRelationshipSetEnd.cs
- XPathAncestorQuery.cs
- XmlBindingWorker.cs
- VerificationAttribute.cs
- SortedDictionary.cs
- SqlInternalConnection.cs
- ToolStripItemEventArgs.cs
- AutomationElement.cs
- RequestNavigateEventArgs.cs
- Model3DGroup.cs
- AttributedMetaModel.cs
- Compiler.cs
- CachedBitmap.cs
- FileIOPermission.cs
- WebPartMenuStyle.cs
- ViewService.cs
- XPathAncestorIterator.cs
- CriticalHandle.cs
- EventLogTraceListener.cs
- UnaryNode.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- Stacktrace.cs
- Symbol.cs
- TreeView.cs
- HostSecurityManager.cs
- PageContentCollection.cs
- TextCompositionEventArgs.cs
- WebServiceMethodData.cs
- FormCollection.cs
- VolatileResourceManager.cs
- DeploymentSectionCache.cs
- ConfigurationManagerHelper.cs
- GridViewUpdatedEventArgs.cs
- SByteConverter.cs
- Speller.cs
- SecurityUniqueId.cs
- X509Certificate2Collection.cs
- XamlDesignerSerializationManager.cs
- BitmapScalingModeValidation.cs
- WebService.cs
- SamlNameIdentifierClaimResource.cs
- CodeTypeConstructor.cs
- ServiceDescriptionReflector.cs
- MemberMemberBinding.cs
- ArgumentNullException.cs
- EmptyStringExpandableObjectConverter.cs
- WebServiceClientProxyGenerator.cs