Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventBindingService.cs
- WindowsTokenRoleProvider.cs
- HitTestWithGeometryDrawingContextWalker.cs
- EventRoute.cs
- Invariant.cs
- GridViewSortEventArgs.cs
- CharacterBufferReference.cs
- StaticTextPointer.cs
- CodeCatchClause.cs
- Environment.cs
- RootBrowserWindowProxy.cs
- AssemblyCollection.cs
- SingleTagSectionHandler.cs
- TextServicesDisplayAttribute.cs
- ResponseStream.cs
- ProfileModule.cs
- CodeTypeParameter.cs
- CriticalHandle.cs
- CmsInterop.cs
- BuildResultCache.cs
- SystemIcmpV6Statistics.cs
- FlowLayoutSettings.cs
- BitmapFrameEncode.cs
- SelectionChangedEventArgs.cs
- ExpressionBindings.cs
- codemethodreferenceexpression.cs
- XhtmlTextWriter.cs
- IxmlLineInfo.cs
- CodeFieldReferenceExpression.cs
- BufferedGraphics.cs
- XComponentModel.cs
- DataGridCellEditEndingEventArgs.cs
- SkewTransform.cs
- HybridObjectCache.cs
- SourceInterpreter.cs
- Message.cs
- DataGridViewColumnConverter.cs
- EventSetter.cs
- Serializer.cs
- WebScriptEnablingElement.cs
- WindowsListViewScroll.cs
- TypeToken.cs
- DesignerEventService.cs
- TypeNameConverter.cs
- ZipIOModeEnforcingStream.cs
- CommonDialog.cs
- EncryptedData.cs
- CodeStatement.cs
- AttachmentCollection.cs
- TextReader.cs
- AutomationElement.cs
- MemberRelationshipService.cs
- FillRuleValidation.cs
- ValidatingReaderNodeData.cs
- QueryConverter.cs
- HttpClientCertificate.cs
- XmlSchemaComplexContentRestriction.cs
- RuleSettingsCollection.cs
- Thickness.cs
- COM2Enum.cs
- OdbcCommand.cs
- SqlDelegatedTransaction.cs
- XmlSerializerVersionAttribute.cs
- StorageTypeMapping.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- HttpCapabilitiesSectionHandler.cs
- ProtectedConfiguration.cs
- DateTimeConverter2.cs
- ServiceDesigner.cs
- odbcmetadatafactory.cs
- externdll.cs
- FontSource.cs
- BaseConfigurationRecord.cs
- DataQuery.cs
- SafeProcessHandle.cs
- HtmlElementCollection.cs
- ControlValuePropertyAttribute.cs
- UndoUnit.cs
- PropertyItemInternal.cs
- SetIterators.cs
- X509AsymmetricSecurityKey.cs
- KeyboardDevice.cs
- DataSysAttribute.cs
- TemplateContent.cs
- HorizontalAlignConverter.cs
- FrameworkContentElementAutomationPeer.cs
- DirectoryInfo.cs
- InfoCardSymmetricAlgorithm.cs
- Inflater.cs
- UIPermission.cs
- OLEDB_Util.cs
- QilIterator.cs
- MimeReflector.cs
- RewritingSimplifier.cs
- ServiceDescriptionImporter.cs
- messageonlyhwndwrapper.cs
- AssociationType.cs
- ProfilePropertySettingsCollection.cs
- WindowsTreeView.cs
- UInt64Storage.cs