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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ValidatedControlConverter.cs
- SqlVisitor.cs
- ServiceBuildProvider.cs
- ObjectItemCollection.cs
- XMLSyntaxException.cs
- DetectRunnableInstancesTask.cs
- LicenseManager.cs
- Events.cs
- MemoryResponseElement.cs
- ContextMenuStrip.cs
- MobileControlDesigner.cs
- Rotation3DAnimationUsingKeyFrames.cs
- GraphicsContainer.cs
- DomNameTable.cs
- DesignTimeHTMLTextWriter.cs
- DebuggerAttributes.cs
- TrustLevel.cs
- UIntPtr.cs
- ParenExpr.cs
- OutputCacheProfile.cs
- CustomErrorsSection.cs
- PageSetupDialog.cs
- WindowsListViewItemCheckBox.cs
- MenuItemBindingCollection.cs
- XmlReader.cs
- COM2IDispatchConverter.cs
- DictionaryTraceRecord.cs
- RowUpdatedEventArgs.cs
- DataServiceRequestException.cs
- BinarySerializer.cs
- Renderer.cs
- SpStreamWrapper.cs
- DataSourceViewSchemaConverter.cs
- Message.cs
- X509CertificateValidationMode.cs
- ReflectionHelper.cs
- Helpers.cs
- wmiutil.cs
- CachingHintValidation.cs
- PrintDocument.cs
- safelink.cs
- ActivityStatusChangeEventArgs.cs
- SourceLocation.cs
- ClonableStack.cs
- PasswordDeriveBytes.cs
- UnsafeNativeMethods.cs
- PtsCache.cs
- BaseConfigurationRecord.cs
- RelationshipConverter.cs
- HandlerFactoryCache.cs
- XmlSchemaInfo.cs
- Parsers.cs
- DllHostedComPlusServiceHost.cs
- UserNamePasswordValidationMode.cs
- Transform3D.cs
- TimeoutException.cs
- CultureInfo.cs
- DtdParser.cs
- LineMetrics.cs
- SettingsAttributes.cs
- Model3DCollection.cs
- URLString.cs
- StreamSecurityUpgradeInitiatorBase.cs
- NegationPusher.cs
- PassportAuthentication.cs
- MILUtilities.cs
- CryptoKeySecurity.cs
- WebPartConnectionsConfigureVerb.cs
- ExpandSegmentCollection.cs
- TraceContextEventArgs.cs
- SamlEvidence.cs
- XmlChoiceIdentifierAttribute.cs
- CollectionConverter.cs
- ApplicationServicesHostFactory.cs
- DataGridViewButtonColumn.cs
- LinkClickEvent.cs
- ValidationError.cs
- ToolStripManager.cs
- SoapFault.cs
- QueryCursorEventArgs.cs
- JournalEntryStack.cs
- ConstraintCollection.cs
- GenericWebPart.cs
- ClassHandlersStore.cs
- TextWriterTraceListener.cs
- IisTraceListener.cs
- RecordBuilder.cs
- HttpResponseWrapper.cs
- OpCopier.cs
- HtmlInputHidden.cs
- EditableTreeList.cs
- LZCodec.cs
- PermissionSetTriple.cs
- CodeChecksumPragma.cs
- SerializationFieldInfo.cs
- MetabaseServerConfig.cs
- SynchronousSendBindingElement.cs
- DescriptionAttribute.cs
- TdsValueSetter.cs
- MsmqHostedTransportConfiguration.cs