Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / SessionPageStateSection.cs / 2 / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerProperties.cs
- ScriptReference.cs
- Serializer.cs
- autovalidator.cs
- StatusBar.cs
- InfoCardTrace.cs
- TaiwanCalendar.cs
- PolyLineSegment.cs
- NetworkCredential.cs
- MulticastNotSupportedException.cs
- UnmanagedMemoryStream.cs
- ModelTypeConverter.cs
- FactoryGenerator.cs
- BackStopAuthenticationModule.cs
- URL.cs
- HttpCachePolicy.cs
- messageonlyhwndwrapper.cs
- CopyCodeAction.cs
- NavigationProperty.cs
- XmlSchemaValidationException.cs
- PriorityRange.cs
- PeerInputChannelListener.cs
- ConnectionStringsExpressionBuilder.cs
- PathNode.cs
- AttributeUsageAttribute.cs
- DeadCharTextComposition.cs
- UserControl.cs
- GroupQuery.cs
- Site.cs
- GridViewUpdatedEventArgs.cs
- PeerCredential.cs
- RepeatInfo.cs
- StaticFileHandler.cs
- GeneralTransform3DTo2D.cs
- HttpCookie.cs
- ProxyElement.cs
- CallbackHandler.cs
- XmlKeywords.cs
- AspNetHostingPermission.cs
- Utils.cs
- Point3D.cs
- StreamReader.cs
- DefinitionProperties.cs
- TreeView.cs
- DesignerPainter.cs
- StyleSheet.cs
- NullEntityWrapper.cs
- ParallelTimeline.cs
- EntityChangedParams.cs
- SvcFileManager.cs
- GridViewCommandEventArgs.cs
- CodeDirectionExpression.cs
- GeometryGroup.cs
- SQLConvert.cs
- dbdatarecord.cs
- Clock.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- TreeViewCancelEvent.cs
- SiteMapProvider.cs
- WebContentFormatHelper.cs
- MetadataCache.cs
- ParallelLoopState.cs
- WebPartZoneAutoFormat.cs
- ErrorProvider.cs
- JpegBitmapEncoder.cs
- ReverseQueryOperator.cs
- Animatable.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- OneOfElement.cs
- PropertyGridView.cs
- DictationGrammar.cs
- DataGridViewImageColumn.cs
- querybuilder.cs
- IQueryable.cs
- SerialPinChanges.cs
- ListViewCommandEventArgs.cs
- ZipIOExtraField.cs
- InProcStateClientManager.cs
- Int16Storage.cs
- HtmlElement.cs
- AsyncCompletedEventArgs.cs
- SequentialUshortCollection.cs
- Permission.cs
- DiscoveryClientRequestChannel.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HyperLinkColumn.cs
- XsltContext.cs
- PropertyGridCommands.cs
- OlePropertyStructs.cs
- ValueTypePropertyReference.cs
- EntityContainerEmitter.cs
- DocumentViewerBase.cs
- AttachedProperty.cs
- WebMessageEncodingBindingElement.cs
- SettingsPropertyIsReadOnlyException.cs
- MailWriter.cs
- WebPartConnectionsCancelVerb.cs
- DependencyProperty.cs
- ConstantExpression.cs
- DataGridViewColumnEventArgs.cs