Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / SessionPageStateSection.cs / 1 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowServiceHost.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- List.cs
- ImplicitInputBrush.cs
- AsymmetricAlgorithm.cs
- TextBoxRenderer.cs
- SortExpressionBuilder.cs
- WebConfigurationManager.cs
- HitTestDrawingContextWalker.cs
- GuidConverter.cs
- GraphicsContainer.cs
- ContentDisposition.cs
- Pts.cs
- SHA384Managed.cs
- ThemeDirectoryCompiler.cs
- SplitterPanel.cs
- DefaultMergeHelper.cs
- HtmlShim.cs
- MasterPageParser.cs
- Message.cs
- FilteredReadOnlyMetadataCollection.cs
- BamlBinaryReader.cs
- TextEditorParagraphs.cs
- ICspAsymmetricAlgorithm.cs
- SqlProfileProvider.cs
- SpellerInterop.cs
- SqlBooleanizer.cs
- DateTimeParse.cs
- Misc.cs
- WebRequestModuleElementCollection.cs
- GlyphRun.cs
- Itemizer.cs
- TreeNodeSelectionProcessor.cs
- ForeignKeyFactory.cs
- InternalPermissions.cs
- TimerElapsedEvenArgs.cs
- TypeSystem.cs
- CallTemplateAction.cs
- PropertyGeneratedEventArgs.cs
- PasswordDeriveBytes.cs
- InfoCardSymmetricAlgorithm.cs
- Expression.DebuggerProxy.cs
- WpfPayload.cs
- XAMLParseException.cs
- DataGridViewBand.cs
- AspCompat.cs
- Quaternion.cs
- BitmapImage.cs
- CompModHelpers.cs
- DataGridViewRowCollection.cs
- BatchWriter.cs
- Italic.cs
- Int64AnimationUsingKeyFrames.cs
- QilReference.cs
- Expressions.cs
- PlacementWorkspace.cs
- srgsitem.cs
- Parallel.cs
- MediaContextNotificationWindow.cs
- FileLoadException.cs
- Buffer.cs
- ProcessStartInfo.cs
- DataSourceNameHandler.cs
- SiteMembershipCondition.cs
- LambdaCompiler.Lambda.cs
- RegexFCD.cs
- RepeaterItemEventArgs.cs
- SendingRequestEventArgs.cs
- ConnectionOrientedTransportChannelFactory.cs
- ReadOnlyDataSourceView.cs
- SHA1.cs
- remotingproxy.cs
- DefaultValueTypeConverter.cs
- xamlnodes.cs
- FrameworkContextData.cs
- ContentPlaceHolder.cs
- ChannelServices.cs
- WebPartCatalogCloseVerb.cs
- Identity.cs
- DecoderNLS.cs
- GridViewColumnHeader.cs
- LiteralText.cs
- TemplateControlParser.cs
- TypeNameConverter.cs
- BuildProvider.cs
- HostUtils.cs
- Matrix3DStack.cs
- ManagedWndProcTracker.cs
- ActivityValidator.cs
- EdmSchemaError.cs
- SyntaxCheck.cs
- LayoutTableCell.cs
- UnsafeNativeMethods.cs
- GPPOINT.cs
- PlanCompilerUtil.cs
- BuiltInExpr.cs
- ResourceWriter.cs
- ObjectQueryExecutionPlan.cs
- ExtensibleClassFactory.cs
- SmuggledIUnknown.cs