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
- SqlCrossApplyToCrossJoin.cs
- ParseHttpDate.cs
- XamlPoint3DCollectionSerializer.cs
- recordstatefactory.cs
- IntegrationExceptionEventArgs.cs
- KeyTime.cs
- Matrix.cs
- RegularExpressionValidator.cs
- SecurityElement.cs
- AutomationPatternInfo.cs
- SafeFileHandle.cs
- PropertyPathWorker.cs
- LassoSelectionBehavior.cs
- XPathNodeIterator.cs
- ParserHooks.cs
- ResourceWriter.cs
- RuntimeResourceSet.cs
- TextMetrics.cs
- DataSetViewSchema.cs
- VisualTreeHelper.cs
- BuilderPropertyEntry.cs
- CompilationUtil.cs
- TimeZone.cs
- Encoding.cs
- ListComponentEditor.cs
- BaseInfoTable.cs
- RootBrowserWindowAutomationPeer.cs
- RegexStringValidator.cs
- EncryptionUtility.cs
- AssemblySettingAttributes.cs
- XmlLoader.cs
- IgnoreFlushAndCloseStream.cs
- TraceHandler.cs
- RegistrySecurity.cs
- MissingSatelliteAssemblyException.cs
- Button.cs
- IndexedEnumerable.cs
- LowerCaseStringConverter.cs
- MailWriter.cs
- AsymmetricSignatureDeformatter.cs
- WorkflowPersistenceService.cs
- LiteralLink.cs
- ScriptDescriptor.cs
- DataGridAddNewRow.cs
- DefaultTraceListener.cs
- TableParagraph.cs
- BooleanKeyFrameCollection.cs
- SqlUdtInfo.cs
- ETagAttribute.cs
- UnauthorizedWebPart.cs
- SerializationEventsCache.cs
- securestring.cs
- SqlException.cs
- DataGridViewColumnEventArgs.cs
- XPathDocument.cs
- SecurityTokenParameters.cs
- DynamicPropertyHolder.cs
- SystemColors.cs
- Vector.cs
- XPathBinder.cs
- ModifierKeysValueSerializer.cs
- AutomationPatternInfo.cs
- ControlValuePropertyAttribute.cs
- IgnoreFlushAndCloseStream.cs
- LinearGradientBrush.cs
- PingReply.cs
- ToolStripLabel.cs
- AuthenticateEventArgs.cs
- RelativeSource.cs
- PartialCachingControl.cs
- CachedFontFace.cs
- FactoryId.cs
- ObjectPropertyMapping.cs
- WindowsStreamSecurityElement.cs
- ContentTextAutomationPeer.cs
- ExpressionBuilderCollection.cs
- BitmapEffectDrawingContent.cs
- StylusTouchDevice.cs
- Msec.cs
- PriorityBindingExpression.cs
- DependencyObjectType.cs
- PointCollection.cs
- HttpListenerRequest.cs
- PlatformCulture.cs
- StringUtil.cs
- EntityDesignPluralizationHandler.cs
- QueryCacheManager.cs
- BinaryWriter.cs
- DeviceContexts.cs
- PngBitmapDecoder.cs
- ResourceReader.cs
- NamespaceInfo.cs
- EncoderParameter.cs
- QueryCacheEntry.cs
- TreeViewBindingsEditor.cs
- ResXResourceReader.cs
- HttpMethodAttribute.cs
- GenericParameterDataContract.cs
- UnsafeNativeMethodsTablet.cs
- HttpListener.cs