Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- mediaclock.cs
- StorageEntityContainerMapping.cs
- FontFaceLayoutInfo.cs
- ConfigsHelper.cs
- WindowsTreeView.cs
- SqlClientMetaDataCollectionNames.cs
- ByteRangeDownloader.cs
- XmlSecureResolver.cs
- InsufficientMemoryException.cs
- ComponentSerializationService.cs
- DataSourceGroupCollection.cs
- SerializationInfo.cs
- CleanUpVirtualizedItemEventArgs.cs
- Event.cs
- SqlNamer.cs
- IEnumerable.cs
- DependencyObjectType.cs
- _ServiceNameStore.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- GregorianCalendar.cs
- Permission.cs
- TransformGroup.cs
- SizeConverter.cs
- CommonProperties.cs
- LogLogRecordEnumerator.cs
- AnimationTimeline.cs
- PageSettings.cs
- TitleStyle.cs
- CollectionContainer.cs
- CommentAction.cs
- XPathDocumentIterator.cs
- DesignerVerbToolStripMenuItem.cs
- XsltArgumentList.cs
- SecurityKeyIdentifier.cs
- ButtonField.cs
- ListSortDescription.cs
- ProgressBarRenderer.cs
- StateMachine.cs
- listviewsubitemcollectioneditor.cs
- DomainConstraint.cs
- PropertyTabChangedEvent.cs
- MimeBasePart.cs
- TraceData.cs
- DSASignatureDeformatter.cs
- UpdatePanelTrigger.cs
- Parallel.cs
- BindToObject.cs
- BinHexDecoder.cs
- ObjectQuery_EntitySqlExtensions.cs
- InternalBufferOverflowException.cs
- DataControlField.cs
- ParameterInfo.cs
- CultureMapper.cs
- Rect.cs
- SqlCacheDependency.cs
- ServiceDocument.cs
- SmtpException.cs
- DataGridHelper.cs
- XmlSchemaSubstitutionGroup.cs
- MobileControlPersister.cs
- CustomBinding.cs
- ListView.cs
- IteratorAsyncResult.cs
- HttpCookiesSection.cs
- PropertyStore.cs
- HtmlControlPersistable.cs
- DataGridViewTextBoxEditingControl.cs
- DrawingAttributesDefaultValueFactory.cs
- WebServicesSection.cs
- StreamWriter.cs
- Polygon.cs
- Material.cs
- EventLogPermissionEntryCollection.cs
- BufferCache.cs
- UIInitializationException.cs
- ActivityInterfaces.cs
- Environment.cs
- ReservationCollection.cs
- GroupedContextMenuStrip.cs
- PeerUnsafeNativeMethods.cs
- IncomingWebRequestContext.cs
- DataGridViewRowsRemovedEventArgs.cs
- PixelFormatConverter.cs
- TagPrefixInfo.cs
- SqlProfileProvider.cs
- SessionEndingCancelEventArgs.cs
- CodeGenerator.cs
- _OSSOCK.cs
- SelectionWordBreaker.cs
- LiteralControl.cs
- UriSection.cs
- shaperfactoryquerycacheentry.cs
- XPathNodeList.cs
- XmlAutoDetectWriter.cs
- regiisutil.cs
- Light.cs
- EventKeyword.cs
- XmlEncoding.cs
- ConfigXmlWhitespace.cs
- FontStretch.cs