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
- ArrayList.cs
- EditorPartChrome.cs
- File.cs
- DataStreamFromComStream.cs
- OpacityConverter.cs
- ConfigurationManagerInternalFactory.cs
- CommandHelpers.cs
- ListBoxItemAutomationPeer.cs
- Quad.cs
- ADConnectionHelper.cs
- BindingValueChangedEventArgs.cs
- ConfigurationValidatorBase.cs
- LinqDataSourceDeleteEventArgs.cs
- InfocardClientCredentials.cs
- GreenMethods.cs
- FunctionMappingTranslator.cs
- TextBox.cs
- LowerCaseStringConverter.cs
- TextServicesLoader.cs
- BufferedReadStream.cs
- ProxySimple.cs
- ChangesetResponse.cs
- AsyncCompletedEventArgs.cs
- ImageCollectionEditor.cs
- XmlSchemaSearchPattern.cs
- XmlLinkedNode.cs
- EmptyReadOnlyDictionaryInternal.cs
- GuidelineCollection.cs
- Container.cs
- ScrollItemProviderWrapper.cs
- TextEffectCollection.cs
- MonthChangedEventArgs.cs
- WorkflowQueueInfo.cs
- GridViewPageEventArgs.cs
- ComponentChangingEvent.cs
- ObservableCollection.cs
- Literal.cs
- PointLightBase.cs
- ChildDocumentBlock.cs
- CollectionViewGroupInternal.cs
- CacheHelper.cs
- StringFormat.cs
- CodeStatementCollection.cs
- XPathNode.cs
- ParserExtension.cs
- UnsafeNativeMethods.cs
- AncillaryOps.cs
- MediaPlayerState.cs
- HMACMD5.cs
- DirectoryNotFoundException.cs
- MulticastDelegate.cs
- InputBuffer.cs
- TypedTableHandler.cs
- MasterPageCodeDomTreeGenerator.cs
- DynamicILGenerator.cs
- DbParameterHelper.cs
- OdbcReferenceCollection.cs
- RectangleHotSpot.cs
- CleanUpVirtualizedItemEventArgs.cs
- ConfigurationPropertyCollection.cs
- ImageDrawing.cs
- TextViewBase.cs
- TransformerInfo.cs
- AxisAngleRotation3D.cs
- WindowsSysHeader.cs
- FormsAuthentication.cs
- ThousandthOfEmRealDoubles.cs
- ApplicationDirectory.cs
- ConvertEvent.cs
- TagPrefixAttribute.cs
- CodeSnippetStatement.cs
- MultiPropertyDescriptorGridEntry.cs
- HelpInfo.cs
- DbConnectionPoolCounters.cs
- ProvideValueServiceProvider.cs
- HttpModuleActionCollection.cs
- ProfilePropertySettingsCollection.cs
- PenContexts.cs
- NestedContainer.cs
- ZoneButton.cs
- CheckedListBox.cs
- XPathMessageFilter.cs
- COM2ColorConverter.cs
- RuntimeTransactionHandle.cs
- AdRotatorDesigner.cs
- TextEffect.cs
- ViewStateModeByIdAttribute.cs
- ToolStripDropDownClosedEventArgs.cs
- StrokeCollectionDefaultValueFactory.cs
- bindurihelper.cs
- VisualStyleTypesAndProperties.cs
- GlyphingCache.cs
- DrawingContext.cs
- KoreanLunisolarCalendar.cs
- ExpressionVisitorHelpers.cs
- DataControlCommands.cs
- COM2FontConverter.cs
- NumericPagerField.cs
- CodeAttributeArgument.cs
- AdornerDecorator.cs