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
- TextEditorParagraphs.cs
- XpsSerializationException.cs
- KeyedCollection.cs
- LayoutTableCell.cs
- ActivityFunc.cs
- ScrollItemPattern.cs
- BuildDependencySet.cs
- AnimationTimeline.cs
- DataIdProcessor.cs
- BufferModesCollection.cs
- WebProxyScriptElement.cs
- ProxyWebPartManager.cs
- MetaModel.cs
- Rectangle.cs
- ContextStack.cs
- XmlCharCheckingWriter.cs
- WindowsFormsSectionHandler.cs
- TabPanel.cs
- ItemsChangedEventArgs.cs
- DataServiceClientException.cs
- LinkTarget.cs
- Listbox.cs
- BoolExpression.cs
- BamlStream.cs
- HMACRIPEMD160.cs
- XmlLangPropertyAttribute.cs
- MetroSerializationManager.cs
- WebPartPersonalization.cs
- DesignerTransaction.cs
- DaylightTime.cs
- SecurityContextSecurityToken.cs
- XmlSchemaImport.cs
- GridViewUpdatedEventArgs.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ReaderWriterLockWrapper.cs
- X509ChainElement.cs
- FakeModelItemImpl.cs
- ValueExpressions.cs
- ReachSerializableProperties.cs
- ReadOnlyDataSourceView.cs
- ComponentCollection.cs
- PartEditor.cs
- DataControlFieldCell.cs
- BitmapEffectInputConnector.cs
- DataServiceExpressionVisitor.cs
- TransferRequestHandler.cs
- MatchAllMessageFilter.cs
- WebPartMenu.cs
- HotSpot.cs
- StreamSecurityUpgradeAcceptor.cs
- DiagnosticTrace.cs
- BitmapData.cs
- EncryptedPackage.cs
- IntegerValidator.cs
- RegistryDataKey.cs
- XamlSerializer.cs
- LicenseContext.cs
- WSDualHttpBindingCollectionElement.cs
- PerfCounterSection.cs
- ScrollChrome.cs
- FtpCachePolicyElement.cs
- HtmlInputSubmit.cs
- DBParameter.cs
- DataControlField.cs
- RequestTimeoutManager.cs
- GroupItemAutomationPeer.cs
- CroppedBitmap.cs
- DbParameterCollectionHelper.cs
- TemplatePagerField.cs
- PropVariant.cs
- KeyedHashAlgorithm.cs
- SymbolEqualComparer.cs
- ModuleElement.cs
- WorkflowInstanceTerminatedRecord.cs
- QuestionEventArgs.cs
- X509ChainPolicy.cs
- ListBoxItemAutomationPeer.cs
- BCLDebug.cs
- SystemWebSectionGroup.cs
- ProcessHostFactoryHelper.cs
- WebSysDisplayNameAttribute.cs
- GridViewRowPresenter.cs
- XhtmlBasicPageAdapter.cs
- DictionaryBase.cs
- MetadataSource.cs
- RouteValueDictionary.cs
- OleDbStruct.cs
- ContractUtils.cs
- XmlRootAttribute.cs
- DictionaryManager.cs
- SoapSchemaImporter.cs
- StreamSecurityUpgradeInitiatorBase.cs
- ProvideValueServiceProvider.cs
- StrongNamePublicKeyBlob.cs
- WindowInteropHelper.cs
- MissingMethodException.cs
- TextParagraphView.cs
- SmtpReplyReader.cs
- AttributeCollection.cs
- AnnotationMap.cs