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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NavigationService.cs
- SoapMessage.cs
- XomlCompiler.cs
- TcpAppDomainProtocolHandler.cs
- FixedTextView.cs
- InternalUserCancelledException.cs
- Common.cs
- Timer.cs
- DataTableTypeConverter.cs
- SqlNodeAnnotations.cs
- FaultDesigner.cs
- ExpressionVisitorHelpers.cs
- BindingCollection.cs
- Wizard.cs
- WebOperationContext.cs
- LinqDataSourceDisposeEventArgs.cs
- CaseInsensitiveComparer.cs
- ListBase.cs
- ToolStripSplitButton.cs
- SessionSwitchEventArgs.cs
- LabelLiteral.cs
- SqlIdentifier.cs
- UserControl.cs
- AsyncContentLoadedEventArgs.cs
- FunctionQuery.cs
- HwndKeyboardInputProvider.cs
- StructuralComparisons.cs
- ParallelForEach.cs
- XmlMapping.cs
- CollectionViewGroupRoot.cs
- templategroup.cs
- XmlSchemaAttributeGroup.cs
- CodeAttributeArgumentCollection.cs
- SqlBinder.cs
- StructuredTypeEmitter.cs
- CaretElement.cs
- httpserverutility.cs
- WebBrowserDocumentCompletedEventHandler.cs
- WmfPlaceableFileHeader.cs
- MetadataLocation.cs
- EventPropertyMap.cs
- DispatcherExceptionEventArgs.cs
- PolyQuadraticBezierSegment.cs
- UidManager.cs
- altserialization.cs
- SessionStateUtil.cs
- SafeArchiveContext.cs
- WindowsIPAddress.cs
- DescendantQuery.cs
- DecimalConstantAttribute.cs
- autovalidator.cs
- JsonByteArrayDataContract.cs
- User.cs
- ReturnType.cs
- RTTrackingProfile.cs
- VariableQuery.cs
- DataServiceRequestOfT.cs
- ContainerParaClient.cs
- ProcessStartInfo.cs
- WebPartEditVerb.cs
- XmlTextReader.cs
- LinqDataSourceContextEventArgs.cs
- SortDescriptionCollection.cs
- CodeComment.cs
- OperationResponse.cs
- XsltCompileContext.cs
- XmlSchemaObject.cs
- UIElement.cs
- FastPropertyAccessor.cs
- GridViewSelectEventArgs.cs
- QueryGenerator.cs
- ConstraintConverter.cs
- AddInControllerImpl.cs
- SmiContext.cs
- IsolatedStoragePermission.cs
- ScrollBarRenderer.cs
- ObjectAnimationUsingKeyFrames.cs
- HttpStreamXmlDictionaryWriter.cs
- XmlStringTable.cs
- IntSecurity.cs
- ToolStripHighContrastRenderer.cs
- State.cs
- PrintPreviewGraphics.cs
- ListGeneralPage.cs
- FrameworkPropertyMetadata.cs
- SoundPlayerAction.cs
- BaseTemplateParser.cs
- RegistrationServices.cs
- CreateUserErrorEventArgs.cs
- FormattedText.cs
- DataGridHelper.cs
- ReachIDocumentPaginatorSerializer.cs
- TrackingSection.cs
- CorrelationTokenInvalidatedHandler.cs
- ActivityDesignerHelper.cs
- MappingItemCollection.cs
- CommandValueSerializer.cs
- OdbcHandle.cs
- sitestring.cs
- XmlSchemaComplexType.cs