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
- util.cs
- InheritanceRules.cs
- COM2ExtendedBrowsingHandler.cs
- GPRECT.cs
- SafeLibraryHandle.cs
- MergablePropertyAttribute.cs
- ControlBuilder.cs
- ListMarkerSourceInfo.cs
- TextUtf8RawTextWriter.cs
- BindingSource.cs
- Geometry.cs
- TemplateControl.cs
- ValueSerializer.cs
- BindableTemplateBuilder.cs
- ScriptingWebServicesSectionGroup.cs
- ToolStripSettings.cs
- BamlTreeUpdater.cs
- WizardForm.cs
- WinInet.cs
- ImageSource.cs
- IndexedGlyphRun.cs
- EmbeddedMailObjectsCollection.cs
- CursorConverter.cs
- TemplateApplicationHelper.cs
- ProcessInputEventArgs.cs
- HttpProfileBase.cs
- CollectionViewProxy.cs
- HuffmanTree.cs
- IPAddressCollection.cs
- ToolStripPanelCell.cs
- SettingsAttributeDictionary.cs
- OutgoingWebRequestContext.cs
- ExtendedPropertyDescriptor.cs
- Pair.cs
- RawUIStateInputReport.cs
- DesignerView.Commands.cs
- dataSvcMapFileLoader.cs
- EncoderNLS.cs
- StringCollection.cs
- PenLineCapValidation.cs
- DiagnosticSection.cs
- SqlFormatter.cs
- DrawListViewItemEventArgs.cs
- BlobPersonalizationState.cs
- _IPv4Address.cs
- RichTextBox.cs
- XmlDataDocument.cs
- DataServices.cs
- UiaCoreProviderApi.cs
- DbBuffer.cs
- VisualBasic.cs
- TraceSource.cs
- EntityDataSourceWrapper.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ObjectTag.cs
- JsonDeserializer.cs
- HebrewNumber.cs
- EntityCommandExecutionException.cs
- StretchValidation.cs
- OutputCacheSettingsSection.cs
- DataTemplateKey.cs
- DataGridTextColumn.cs
- SamlSubject.cs
- ClientRuntimeConfig.cs
- UnaryNode.cs
- BitmapEffectGroup.cs
- MarkupObject.cs
- Simplifier.cs
- PathSegmentCollection.cs
- Error.cs
- OraclePermission.cs
- SelectedGridItemChangedEvent.cs
- FirewallWrapper.cs
- HttpStreamFormatter.cs
- ConvertersCollection.cs
- CharUnicodeInfo.cs
- ListItemCollection.cs
- DisplayNameAttribute.cs
- BulletedListEventArgs.cs
- DeflateStream.cs
- SelectionEditor.cs
- EntityRecordInfo.cs
- Repeater.cs
- CodeTypeParameter.cs
- MonthCalendar.cs
- Point.cs
- _HeaderInfoTable.cs
- PrinterUnitConvert.cs
- SequentialUshortCollection.cs
- CodeIndexerExpression.cs
- BridgeDataReader.cs
- MD5Cng.cs
- GridViewCancelEditEventArgs.cs
- XmlAttributeAttribute.cs
- SchemaNamespaceManager.cs
- TagMapCollection.cs
- ProtocolViolationException.cs
- OleStrCAMarshaler.cs
- CreateUserWizard.cs
- SourceItem.cs