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 / SessionPageStateSection.cs / 1 / SessionPageStateSection.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 SessionPageStateSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; public const int DefaultHistorySize = 9; // #region Property Declarations private static readonly ConfigurationProperty _propHistorySize = new ConfigurationProperty("historySize", typeof(int), DefaultHistorySize, null, StdValidatorsAndConverters.NonZeroPositiveIntegerValidator, ConfigurationPropertyOptions.None); #endregion static SessionPageStateSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propHistorySize); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("historySize", DefaultValue = DefaultHistorySize)] [IntegerValidator(MinValue = 1)] public int HistorySize { get { return (int)base[_propHistorySize]; } set { base[_propHistorySize] = value; } } } } // 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 SessionPageStateSection : ConfigurationSection { private static ConfigurationPropertyCollection _properties; public const int DefaultHistorySize = 9; // #region Property Declarations private static readonly ConfigurationProperty _propHistorySize = new ConfigurationProperty("historySize", typeof(int), DefaultHistorySize, null, StdValidatorsAndConverters.NonZeroPositiveIntegerValidator, ConfigurationPropertyOptions.None); #endregion static SessionPageStateSection() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propHistorySize); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("historySize", DefaultValue = DefaultHistorySize)] [IntegerValidator(MinValue = 1)] public int HistorySize { get { return (int)base[_propHistorySize]; } set { base[_propHistorySize] = value; } } } } // 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
- Int16Converter.cs
- ByteAnimationUsingKeyFrames.cs
- DefaultHttpHandler.cs
- WebPartDisplayMode.cs
- MetafileHeader.cs
- ReturnValue.cs
- CryptoApi.cs
- DataGridViewImageCell.cs
- XmlNodeList.cs
- StrongNameMembershipCondition.cs
- HttpException.cs
- PrintPreviewGraphics.cs
- RankException.cs
- ProfileGroupSettings.cs
- FixedSchema.cs
- WebPartEditorCancelVerb.cs
- WebAdminConfigurationHelper.cs
- ContentPresenter.cs
- precedingsibling.cs
- GeneralTransform2DTo3D.cs
- AdPostCacheSubstitution.cs
- KnownBoxes.cs
- DesignerActionUIStateChangeEventArgs.cs
- ToggleButtonAutomationPeer.cs
- XmlStreamNodeWriter.cs
- AstTree.cs
- HelloMessageApril2005.cs
- PenLineCapValidation.cs
- TextSchema.cs
- DataAdapter.cs
- XomlCompilerParameters.cs
- ZipPackagePart.cs
- CompiledXpathExpr.cs
- EntityContainerEmitter.cs
- XmlNullResolver.cs
- IntegerValidatorAttribute.cs
- BamlLocalizableResource.cs
- TypeSystem.cs
- _CacheStreams.cs
- IIS7UserPrincipal.cs
- Math.cs
- PagesChangedEventArgs.cs
- SQLCharsStorage.cs
- Activity.cs
- ClientSponsor.cs
- FileSystemInfo.cs
- RegistryExceptionHelper.cs
- StrokeNode.cs
- ServicePointManagerElement.cs
- TextEffectResolver.cs
- LocatorPartList.cs
- ParenExpr.cs
- PowerModeChangedEventArgs.cs
- HMACSHA1.cs
- TextSelectionHighlightLayer.cs
- FolderBrowserDialog.cs
- ReadOnlyNameValueCollection.cs
- PropertyItemInternal.cs
- HttpException.cs
- XmlArrayItemAttribute.cs
- SuppressIldasmAttribute.cs
- HttpWebResponse.cs
- ComponentTray.cs
- SpecialFolderEnumConverter.cs
- controlskin.cs
- PropertyTabAttribute.cs
- AudioFileOut.cs
- MemberExpressionHelper.cs
- TrackBarRenderer.cs
- ModuleBuilder.cs
- SqlParameter.cs
- XmlEncodedRawTextWriter.cs
- CommandLineParser.cs
- RotateTransform.cs
- ComplexTypeEmitter.cs
- TabControlCancelEvent.cs
- PathTooLongException.cs
- AnnotationHighlightLayer.cs
- MetabaseSettingsIis7.cs
- CodeTypeDelegate.cs
- SQLInt32Storage.cs
- ParsedAttributeCollection.cs
- MatcherBuilder.cs
- HitTestFilterBehavior.cs
- DragStartedEventArgs.cs
- RegionIterator.cs
- SystemWebExtensionsSectionGroup.cs
- ContextStack.cs
- MembershipSection.cs
- XmlSerializableReader.cs
- OleDbConnectionFactory.cs
- XPathQilFactory.cs
- TextTreeText.cs
- AssemblyCollection.cs
- DictionaryBase.cs
- DataControlFieldHeaderCell.cs
- DataIdProcessor.cs
- BitmapSourceSafeMILHandle.cs
- UnicodeEncoding.cs
- HtmlUtf8RawTextWriter.cs