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
- RichTextBoxAutomationPeer.cs
- XmlTextAttribute.cs
- ResolveNameEventArgs.cs
- HtmlImage.cs
- DbExpressionVisitor_TResultType.cs
- AppDomainManager.cs
- ReadOnlyState.cs
- ToolStripDropDownButton.cs
- SchemaNotation.cs
- PathFigureCollectionValueSerializer.cs
- TextViewSelectionProcessor.cs
- ItemType.cs
- ObjectSet.cs
- ColumnHeader.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- DropSource.cs
- DataGridTable.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ScriptIgnoreAttribute.cs
- TrackingProfileDeserializationException.cs
- SecurityPolicySection.cs
- ElementMarkupObject.cs
- Oid.cs
- SspiSecurityToken.cs
- MimeTypePropertyAttribute.cs
- SectionInput.cs
- MultiTargetingUtil.cs
- TreeNode.cs
- FrameworkTextComposition.cs
- ProxyAttribute.cs
- XsdDataContractImporter.cs
- FieldBuilder.cs
- NominalTypeEliminator.cs
- DBAsyncResult.cs
- TraceContextRecord.cs
- TypeSource.cs
- WorkflowDesignerColors.cs
- NeutralResourcesLanguageAttribute.cs
- HtmlInputControl.cs
- ExtensionSimplifierMarkupObject.cs
- ExtentKey.cs
- EntityClientCacheEntry.cs
- PreviewPageInfo.cs
- ManipulationVelocities.cs
- FontStyles.cs
- ButtonField.cs
- GeneralTransform3D.cs
- BaseTreeIterator.cs
- ContainerActivationHelper.cs
- InternalPermissions.cs
- ArithmeticException.cs
- ObservableDictionary.cs
- Thread.cs
- EntityContainerAssociationSetEnd.cs
- Icon.cs
- TemplateControl.cs
- InertiaTranslationBehavior.cs
- EventLogger.cs
- OleDbFactory.cs
- XPathAxisIterator.cs
- Logging.cs
- GridErrorDlg.cs
- LayoutDump.cs
- BindingList.cs
- ContentWrapperAttribute.cs
- RequestDescription.cs
- DetailsViewDeleteEventArgs.cs
- ItemCollection.cs
- TreeViewCancelEvent.cs
- TextSerializer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- versioninfo.cs
- ADRoleFactoryConfiguration.cs
- ParallelSeparator.xaml.cs
- SQLByte.cs
- CompiledQueryCacheKey.cs
- XmlSchemaImporter.cs
- HttpInputStream.cs
- TextTreeInsertElementUndoUnit.cs
- HTTPNotFoundHandler.cs
- StyleSheetDesigner.cs
- RowVisual.cs
- COSERVERINFO.cs
- XmlException.cs
- Section.cs
- DefaultTextStoreTextComposition.cs
- basecomparevalidator.cs
- TemplateAction.cs
- DeclaredTypeValidatorAttribute.cs
- JsonEncodingStreamWrapper.cs
- HuffCodec.cs
- TemplatePropertyEntry.cs
- ConcatQueryOperator.cs
- XmlExtensionFunction.cs
- SqlClientMetaDataCollectionNames.cs
- SqlDataSourceParameterParser.cs
- GcSettings.cs
- CfgRule.cs
- WizardForm.cs
- TextEditorCopyPaste.cs