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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeBlockBuilder.cs
- OdbcConnectionString.cs
- TraceListeners.cs
- FrugalMap.cs
- PassportAuthenticationModule.cs
- DeploymentSectionCache.cs
- MinMaxParagraphWidth.cs
- Rotation3D.cs
- Container.cs
- Normalizer.cs
- AspNetSynchronizationContext.cs
- IUnknownConstantAttribute.cs
- XmlSerializerFactory.cs
- ExtenderProviderService.cs
- DoubleLinkList.cs
- FileChangeNotifier.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ExpressionList.cs
- DynamicValueConverter.cs
- GenericParameterDataContract.cs
- AxisAngleRotation3D.cs
- SqlDataSourceSelectingEventArgs.cs
- ExpressionNode.cs
- Memoizer.cs
- DocumentPaginator.cs
- ToolStripSplitButton.cs
- LayoutSettings.cs
- InkCanvasInnerCanvas.cs
- SqlAliaser.cs
- CookielessHelper.cs
- EntityDataSourceDesignerHelper.cs
- SqlDependency.cs
- ParameterDataSourceExpression.cs
- ReliableRequestSessionChannel.cs
- AppLevelCompilationSectionCache.cs
- QuinticEase.cs
- Tablet.cs
- UnsafeNativeMethods.cs
- AstTree.cs
- NullableDecimalAverageAggregationOperator.cs
- SQlBooleanStorage.cs
- FixedStringLookup.cs
- SocketException.cs
- StreamHelper.cs
- CultureInfoConverter.cs
- SafeCryptoHandles.cs
- SafePointer.cs
- UnmanagedMemoryStream.cs
- EdmFunctions.cs
- MembershipUser.cs
- GPPOINTF.cs
- PrimitiveCodeDomSerializer.cs
- PropertyValueUIItem.cs
- SemaphoreSecurity.cs
- TextLine.cs
- DataListItem.cs
- SerializerProvider.cs
- FormsAuthenticationCredentials.cs
- SchemaImporterExtensionElement.cs
- XmlArrayItemAttribute.cs
- DataView.cs
- RangeValidator.cs
- ZoomPercentageConverter.cs
- OracleFactory.cs
- PropertyGeneratedEventArgs.cs
- BaseValidator.cs
- XmlSortKey.cs
- _SecureChannel.cs
- MetadataCacheItem.cs
- ReadContentAsBinaryHelper.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- PublisherIdentityPermission.cs
- CollectionViewProxy.cs
- PlanCompiler.cs
- SqlMetaData.cs
- QilExpression.cs
- PropertyEmitter.cs
- OdbcException.cs
- Polygon.cs
- ApplicationCommands.cs
- SearchForVirtualItemEventArgs.cs
- ListSourceHelper.cs
- CellTreeNodeVisitors.cs
- RegexFCD.cs
- TypeNameHelper.cs
- DBBindings.cs
- UInt16Storage.cs
- AsyncMethodInvoker.cs
- DropDownList.cs
- ProcessHostConfigUtils.cs
- HttpCachePolicy.cs
- Matrix.cs
- ContextDataSourceView.cs
- DetailsViewPagerRow.cs
- XamlTreeBuilder.cs
- SQLBytes.cs
- PeerResolverMode.cs
- PostBackOptions.cs
- MonitoringDescriptionAttribute.cs
- QueryResults.cs