Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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.
//------------------------------------------------------------------------------
//
// 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
- WebScriptEnablingElement.cs
- StreamGeometry.cs
- WebPartConnection.cs
- CollectionBase.cs
- ConfigurationElementCollection.cs
- NullRuntimeConfig.cs
- RootBrowserWindowProxy.cs
- ProjectionPath.cs
- ActivitySurrogate.cs
- SpeechDetectedEventArgs.cs
- EditorZone.cs
- PartitionedStreamMerger.cs
- DefaultMemberAttribute.cs
- DuplexClientBase.cs
- AccessibleObject.cs
- ResourcePermissionBaseEntry.cs
- PopupControlService.cs
- NavigationEventArgs.cs
- TagPrefixInfo.cs
- BuildProvider.cs
- PagerSettings.cs
- FilterRepeater.cs
- TemporaryBitmapFile.cs
- TraceProvider.cs
- CreateWorkflowOwnerCommand.cs
- ProcessModelSection.cs
- RequestCache.cs
- LinkedResource.cs
- BevelBitmapEffect.cs
- DropSource.cs
- RSAOAEPKeyExchangeDeformatter.cs
- HostProtectionException.cs
- StaticTextPointer.cs
- CollectionView.cs
- Lazy.cs
- XPathNode.cs
- TextEndOfLine.cs
- HybridDictionary.cs
- CallbackHandler.cs
- MemoryResponseElement.cs
- Nullable.cs
- SqlBuilder.cs
- WorkflowMessageEventArgs.cs
- KeyProperty.cs
- EntryPointNotFoundException.cs
- Header.cs
- GridToolTip.cs
- RuntimeHandles.cs
- EditorOptionAttribute.cs
- CurrentChangedEventManager.cs
- AvTraceFormat.cs
- DifferencingCollection.cs
- DbReferenceCollection.cs
- KeyBinding.cs
- CodeArrayIndexerExpression.cs
- ZoneMembershipCondition.cs
- MonitorWrapper.cs
- DesignerDataTableBase.cs
- ModelUIElement3D.cs
- shaperfactoryquerycacheentry.cs
- EventLogPermissionAttribute.cs
- DbException.cs
- TraceContextEventArgs.cs
- DesignerValidationSummaryAdapter.cs
- InternalConfigConfigurationFactory.cs
- ThreadExceptionEvent.cs
- NativeMethods.cs
- UnsafeNativeMethods.cs
- AnchorEditor.cs
- StateManagedCollection.cs
- _NTAuthentication.cs
- AssemblyName.cs
- XmlSchemaExporter.cs
- DataSourceHelper.cs
- RequestChannel.cs
- DocumentEventArgs.cs
- Camera.cs
- TextCharacters.cs
- SizeAnimationUsingKeyFrames.cs
- SecurityPolicySection.cs
- processwaithandle.cs
- StylusSystemGestureEventArgs.cs
- PriorityBinding.cs
- ZipIOExtraField.cs
- Model3D.cs
- DefaultEventAttribute.cs
- SqlXmlStorage.cs
- LabelEditEvent.cs
- _SafeNetHandles.cs
- FontFamilyValueSerializer.cs
- TableCellAutomationPeer.cs
- KeyInfo.cs
- SmiEventSink_Default.cs
- DataGridViewImageCell.cs
- ChildrenQuery.cs
- CodeTypeParameter.cs
- QueryableDataSourceEditData.cs
- Transaction.cs
- ChangeBlockUndoRecord.cs
- Avt.cs