Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Int16.cs
- TableItemProviderWrapper.cs
- BinaryWriter.cs
- ConfigsHelper.cs
- HtmlLink.cs
- DataGridViewEditingControlShowingEventArgs.cs
- PropertyDescriptor.cs
- MaterialCollection.cs
- autovalidator.cs
- WebServiceData.cs
- SQLInt16Storage.cs
- DataRecordObjectView.cs
- IndexOutOfRangeException.cs
- DynamicFilter.cs
- GatewayIPAddressInformationCollection.cs
- FacetDescription.cs
- XmlCharCheckingReader.cs
- ISCIIEncoding.cs
- Component.cs
- FileCodeGroup.cs
- autovalidator.cs
- XmlEntity.cs
- SqlUserDefinedAggregateAttribute.cs
- LinkArea.cs
- CollectionsUtil.cs
- PagedDataSource.cs
- AstTree.cs
- Stylus.cs
- HtmlHead.cs
- MediaElementAutomationPeer.cs
- CounterCreationDataCollection.cs
- FixUp.cs
- UnorderedHashRepartitionStream.cs
- ArrayWithOffset.cs
- StoreContentChangedEventArgs.cs
- XhtmlBasicCalendarAdapter.cs
- Material.cs
- Compiler.cs
- ValueUnavailableException.cs
- HttpApplicationFactory.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- CompensationHandlingFilter.cs
- FilterException.cs
- MsiStyleLogWriter.cs
- PasswordDeriveBytes.cs
- FontStretchConverter.cs
- XmlNodeChangedEventManager.cs
- WebBrowserNavigatingEventHandler.cs
- DataException.cs
- ListViewItemMouseHoverEvent.cs
- GreaterThanOrEqual.cs
- ProgressBar.cs
- Crc32.cs
- Pair.cs
- InfoCardSymmetricCrypto.cs
- WebPartManagerDesigner.cs
- TaskExceptionHolder.cs
- UserPersonalizationStateInfo.cs
- LicFileLicenseProvider.cs
- ReflectionHelper.cs
- XmlILOptimizerVisitor.cs
- TrackingCondition.cs
- Size3D.cs
- UserControlAutomationPeer.cs
- SqlCommandSet.cs
- TreeView.cs
- IpcServerChannel.cs
- IndexedGlyphRun.cs
- ProtectedConfiguration.cs
- ExportFileRequest.cs
- ComponentManagerBroker.cs
- SettingsAttributes.cs
- WebPartHelpVerb.cs
- ReadingWritingEntityEventArgs.cs
- SkipQueryOptionExpression.cs
- ContentElement.cs
- BamlLocalizableResourceKey.cs
- FilteredXmlReader.cs
- TraceListener.cs
- TableLayoutPanelBehavior.cs
- RayHitTestParameters.cs
- TextParentUndoUnit.cs
- SingleKeyFrameCollection.cs
- OptimisticConcurrencyException.cs
- StorageBasedPackageProperties.cs
- EventBuilder.cs
- BamlResourceDeserializer.cs
- AuthenticationSection.cs
- ConfigurationStrings.cs
- DataAdapter.cs
- UIInitializationException.cs
- Rights.cs
- PowerEase.cs
- SecurityCredentialsManager.cs
- smtpconnection.cs
- AffineTransform3D.cs
- MenuItemBinding.cs
- SpellCheck.cs
- FileCodeGroup.cs
- InternalControlCollection.cs