Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / SessionPageStateSection.cs / 1305376 / 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; 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; 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
- ListBoxItemWrapperAutomationPeer.cs
- Polyline.cs
- SqlEnums.cs
- DataGridRelationshipRow.cs
- SecurityContext.cs
- Internal.cs
- COM2IProvidePropertyBuilderHandler.cs
- safelinkcollection.cs
- SqlFunctions.cs
- SqlDataSource.cs
- SessionIDManager.cs
- ContainerUtilities.cs
- GlyphRunDrawing.cs
- TdsParameterSetter.cs
- WebPartEditorCancelVerb.cs
- SmiContextFactory.cs
- TemplateBindingExtensionConverter.cs
- CodeTypeDelegate.cs
- XmlCollation.cs
- StringFreezingAttribute.cs
- GroupDescription.cs
- SettingsAttributeDictionary.cs
- TextEditorCharacters.cs
- SQLByte.cs
- EventEntry.cs
- CustomCredentialPolicy.cs
- WinEventHandler.cs
- DataStreams.cs
- DataGridViewColumnEventArgs.cs
- EntityDataSourceValidationException.cs
- PrintDialog.cs
- SuppressIldasmAttribute.cs
- SqlParameterCollection.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- CompositeScriptReferenceEventArgs.cs
- FixedDocumentPaginator.cs
- ResXFileRef.cs
- SystemWebExtensionsSectionGroup.cs
- sqlser.cs
- PasswordDeriveBytes.cs
- CodeCommentStatementCollection.cs
- AssemblyNameProxy.cs
- MetaTableHelper.cs
- ToolTipService.cs
- CodeCastExpression.cs
- CqlIdentifiers.cs
- ManagedFilter.cs
- LogEntryHeaderv1Deserializer.cs
- FederatedMessageSecurityOverHttp.cs
- GPPOINT.cs
- SecondaryViewProvider.cs
- X509Extension.cs
- WaitingCursor.cs
- AddInAdapter.cs
- ProxyWebPart.cs
- ListViewCancelEventArgs.cs
- ZipIOCentralDirectoryFileHeader.cs
- ConnectionInterfaceCollection.cs
- Stack.cs
- LogicalMethodInfo.cs
- UniqueConstraint.cs
- GridViewPageEventArgs.cs
- Rect3D.cs
- DataList.cs
- HMACSHA384.cs
- GPRECTF.cs
- FileAuthorizationModule.cs
- SafeCertificateStore.cs
- ParseHttpDate.cs
- SqlUnionizer.cs
- XmlRawWriter.cs
- XmlSchemaChoice.cs
- RequestTimeoutManager.cs
- UIInitializationException.cs
- XmlNodeComparer.cs
- XPathScanner.cs
- CFStream.cs
- Stack.cs
- ReaderOutput.cs
- InvalidProgramException.cs
- XPathSelfQuery.cs
- AtlasWeb.Designer.cs
- AutomationPatternInfo.cs
- MessageSecurityVersion.cs
- OAVariantLib.cs
- SHA512Managed.cs
- XmlDataCollection.cs
- DbParameterCollectionHelper.cs
- AbsoluteQuery.cs
- DockingAttribute.cs
- PixelFormat.cs
- CharacterMetrics.cs
- TemplatedMailWebEventProvider.cs
- BitmapEffectDrawingContextState.cs
- DataServiceHostFactory.cs
- BasicKeyConstraint.cs
- OpenFileDialog.cs
- ConfigsHelper.cs
- CodeTypeConstructor.cs
- SplineKeyFrames.cs