Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DataObjectCopyingEventArgs.cs
- DataTableReaderListener.cs
- ListBindingHelper.cs
- QueryCacheManager.cs
- TrustManagerPromptUI.cs
- Viewport2DVisual3D.cs
- DirectionalLight.cs
- PrinterUnitConvert.cs
- BmpBitmapDecoder.cs
- DistinctQueryOperator.cs
- ListViewItemCollectionEditor.cs
- DecimalConverter.cs
- Int64.cs
- DataControlImageButton.cs
- activationcontext.cs
- DateTimeAutomationPeer.cs
- TdsValueSetter.cs
- StrongName.cs
- ToolStripSplitButton.cs
- RoleManagerModule.cs
- SqlGenericUtil.cs
- HttpProfileGroupBase.cs
- XmlAnyElementAttributes.cs
- FontNameConverter.cs
- RequestQueue.cs
- StreamSecurityUpgradeInitiatorBase.cs
- CalendarDay.cs
- BStrWrapper.cs
- ReflectionPermission.cs
- GroupItem.cs
- SettingsAttributeDictionary.cs
- IdnElement.cs
- cookiecollection.cs
- ClientProxyGenerator.cs
- SqlFileStream.cs
- ProgressBarHighlightConverter.cs
- contentDescriptor.cs
- GeneratedView.cs
- WindowsNonControl.cs
- XmlExceptionHelper.cs
- IEnumerable.cs
- BaseCollection.cs
- KeyTime.cs
- MatrixCamera.cs
- TextSelectionProcessor.cs
- _KerberosClient.cs
- SchemaElementLookUpTableEnumerator.cs
- ObfuscateAssemblyAttribute.cs
- InkCanvasFeedbackAdorner.cs
- MsmqProcessProtocolHandler.cs
- RuleSetBrowserDialog.cs
- RoutedEventHandlerInfo.cs
- FormView.cs
- InheritanceContextChangedEventManager.cs
- SemanticValue.cs
- NotifyInputEventArgs.cs
- DataSourceSelectArguments.cs
- SHA1Managed.cs
- Timeline.cs
- _SafeNetHandles.cs
- StringConcat.cs
- SerialReceived.cs
- DataTransferEventArgs.cs
- BaseProcessor.cs
- HttpVersion.cs
- ToolStripItemTextRenderEventArgs.cs
- RuntimeConfigLKG.cs
- LocalizableResourceBuilder.cs
- DataGridViewComboBoxCell.cs
- UIElementPropertyUndoUnit.cs
- WebPartEditorApplyVerb.cs
- ArgumentValueSerializer.cs
- CursorConverter.cs
- DataRowView.cs
- File.cs
- URLIdentityPermission.cs
- indexingfiltermarshaler.cs
- TransformCryptoHandle.cs
- TagPrefixAttribute.cs
- ModelUtilities.cs
- NavigatorOutput.cs
- IdnMapping.cs
- SafeLibraryHandle.cs
- FontWeights.cs
- AppLevelCompilationSectionCache.cs
- ELinqQueryState.cs
- dbenumerator.cs
- Metafile.cs
- ApplicationTrust.cs
- ApplicationFileCodeDomTreeGenerator.cs
- NativeMethods.cs
- Rules.cs
- ConfigurationManager.cs
- ElementUtil.cs
- ToolBarButtonClickEvent.cs
- FieldAccessException.cs
- SchemaMapping.cs
- PopupEventArgs.cs
- CustomTypeDescriptor.cs
- Tracking.cs