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
- DisplayToken.cs
- Double.cs
- OdbcEnvironment.cs
- InitializationEventAttribute.cs
- D3DImage.cs
- SortKey.cs
- TagMapInfo.cs
- AppDomainUnloadedException.cs
- IgnoreFileBuildProvider.cs
- ManipulationVelocities.cs
- FileEnumerator.cs
- ShellProvider.cs
- LinkLabel.cs
- GeneralTransform3D.cs
- HtmlForm.cs
- GeometryCollection.cs
- Peer.cs
- QilValidationVisitor.cs
- UrlMappingsSection.cs
- httpstaticobjectscollection.cs
- BinaryObjectReader.cs
- ColorIndependentAnimationStorage.cs
- HtmlInputCheckBox.cs
- CheckBoxList.cs
- IImplicitResourceProvider.cs
- DocComment.cs
- TextServicesManager.cs
- CompilerGeneratedAttribute.cs
- DrawingVisualDrawingContext.cs
- ObjectView.cs
- ProcessThreadDesigner.cs
- ExceptionHandlerDesigner.cs
- DelegatingHeader.cs
- ProviderUtil.cs
- XMLSyntaxException.cs
- XmlNodeChangedEventManager.cs
- BufferedGraphics.cs
- DefaultAutoFieldGenerator.cs
- WebPartConnectionsCancelVerb.cs
- ThemeDirectoryCompiler.cs
- XmlChoiceIdentifierAttribute.cs
- ContentElement.cs
- ZipPackage.cs
- JavaScriptObjectDeserializer.cs
- DrawingDrawingContext.cs
- DataGridViewSortCompareEventArgs.cs
- CodeDirectiveCollection.cs
- AnnotationHighlightLayer.cs
- linebase.cs
- RuleElement.cs
- TableItemPattern.cs
- ClientConfigurationSystem.cs
- Ticks.cs
- Activation.cs
- WeakEventTable.cs
- DrawingContextWalker.cs
- XmlSerializer.cs
- RepeatInfo.cs
- LambdaCompiler.cs
- FontStretches.cs
- DBSqlParserTableCollection.cs
- MessageBox.cs
- XmlWrappingReader.cs
- ConditionBrowserDialog.cs
- TaiwanCalendar.cs
- BufferBuilder.cs
- ImageMap.cs
- AppSettingsReader.cs
- KeyedCollection.cs
- NamespaceQuery.cs
- SparseMemoryStream.cs
- XsltArgumentList.cs
- HtmlProps.cs
- IdentityModelDictionary.cs
- PropertyFilterAttribute.cs
- WriteTimeStream.cs
- Int64Converter.cs
- IntegrationExceptionEventArgs.cs
- HandleCollector.cs
- ManifestResourceInfo.cs
- ConditionCollection.cs
- ErrorsHelper.cs
- PathFigureCollection.cs
- CoordinationService.cs
- MarkupCompilePass1.cs
- ListSourceHelper.cs
- Base64Encoding.cs
- CheckBoxList.cs
- Typeface.cs
- TrackingMemoryStreamFactory.cs
- KeyProperty.cs
- CachedPathData.cs
- RedirectionProxy.cs
- HwndMouseInputProvider.cs
- BufferedGraphics.cs
- WorkflowApplicationCompletedException.cs
- Shape.cs
- InternalsVisibleToAttribute.cs
- XmlSchemaInclude.cs
- LineBreakRecord.cs