Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripDropDownClosingEventArgs.cs
- RelativeSource.cs
- QueryContinueDragEventArgs.cs
- OverlappedAsyncResult.cs
- PDBReader.cs
- InstanceDescriptor.cs
- BindToObject.cs
- PerformanceCounterManager.cs
- AppSettingsSection.cs
- OdbcDataAdapter.cs
- TableLayoutStyle.cs
- SmiTypedGetterSetter.cs
- ProcessModule.cs
- PropertyMetadata.cs
- Convert.cs
- CollectionViewGroup.cs
- PropertyMapper.cs
- WSFederationHttpBinding.cs
- SQLMembershipProvider.cs
- securitycriticaldata.cs
- QueryOutputWriter.cs
- DbProviderServices.cs
- CellConstantDomain.cs
- TableCellAutomationPeer.cs
- DocumentPaginator.cs
- ContractInferenceHelper.cs
- RequestStatusBarUpdateEventArgs.cs
- IndexedSelectQueryOperator.cs
- SqlTransaction.cs
- DialogResultConverter.cs
- Header.cs
- EntityObject.cs
- GridViewUpdatedEventArgs.cs
- SerializationException.cs
- EdmComplexPropertyAttribute.cs
- LinkConverter.cs
- WindowsTreeView.cs
- FrameworkElement.cs
- SelectorItemAutomationPeer.cs
- GlobalizationAssembly.cs
- TextRunCacheImp.cs
- smtpconnection.cs
- GlyphTypeface.cs
- FormViewDeletedEventArgs.cs
- XsdBuildProvider.cs
- ArrayTypeMismatchException.cs
- DataColumnMapping.cs
- CodeObject.cs
- EmptyEnumerator.cs
- CompiledIdentityConstraint.cs
- DataGridViewCellCancelEventArgs.cs
- Optimizer.cs
- DictionaryBase.cs
- LogWriteRestartAreaAsyncResult.cs
- ChildDocumentBlock.cs
- BindingList.cs
- ErrorFormatter.cs
- CreateUserWizardStep.cs
- Internal.cs
- SecurityAlgorithmSuiteConverter.cs
- ColorConverter.cs
- SmtpReplyReader.cs
- UnsafePeerToPeerMethods.cs
- TypeReference.cs
- ProtocolsConfiguration.cs
- EnvelopedPkcs7.cs
- ProtocolImporter.cs
- LogEntryHeaderDeserializer.cs
- DrawListViewColumnHeaderEventArgs.cs
- SpecialFolderEnumConverter.cs
- XmlElementAttribute.cs
- Metadata.cs
- RenderContext.cs
- TrustManager.cs
- JapaneseLunisolarCalendar.cs
- CqlLexer.cs
- WebPartCatalogAddVerb.cs
- PropertyEmitter.cs
- BamlBinaryWriter.cs
- InputBuffer.cs
- SolidBrush.cs
- WebPartDescriptionCollection.cs
- XmlElementCollection.cs
- EntityWithKeyStrategy.cs
- GPRECT.cs
- ApplicationBuildProvider.cs
- _NestedMultipleAsyncResult.cs
- HttpHandlerAction.cs
- SqlPersonalizationProvider.cs
- Buffer.cs
- SafeSerializationManager.cs
- ActivationServices.cs
- ColorConvertedBitmap.cs
- ShaperBuffers.cs
- SchemaImporterExtensionsSection.cs
- CompleteWizardStep.cs
- ToolboxItemAttribute.cs
- StrokeNodeOperations2.cs
- CollectionEditVerbManager.cs
- DataListCommandEventArgs.cs