Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- InheritedPropertyDescriptor.cs
- TextTreeText.cs
- InitializingNewItemEventArgs.cs
- FillBehavior.cs
- IItemProperties.cs
- MessageAction.cs
- GacUtil.cs
- NumberFormatInfo.cs
- RadioButtonStandardAdapter.cs
- UndoManager.cs
- CryptoProvider.cs
- WindowsBrush.cs
- XmlSchemaGroup.cs
- LayoutTableCell.cs
- RectangleHotSpot.cs
- GroupBox.cs
- TickBar.cs
- EditingCoordinator.cs
- XmlValueConverter.cs
- DataKey.cs
- Condition.cs
- RecognizerBase.cs
- IsolatedStoragePermission.cs
- InteropExecutor.cs
- X509UI.cs
- ObjRef.cs
- ControlBindingsCollection.cs
- ModelPerspective.cs
- ComponentGuaranteesAttribute.cs
- OrderPreservingPipeliningMergeHelper.cs
- Size3D.cs
- OutOfMemoryException.cs
- BaseCollection.cs
- IRCollection.cs
- TdsParameterSetter.cs
- BuildManagerHost.cs
- SystemIPv6InterfaceProperties.cs
- ListBox.cs
- WinFormsSecurity.cs
- SourceLineInfo.cs
- Expression.DebuggerProxy.cs
- FixedFlowMap.cs
- ExpressionVisitor.cs
- SmtpReplyReader.cs
- ColorInterpolationModeValidation.cs
- XmlSchemaImport.cs
- GifBitmapEncoder.cs
- SqlGatherProducedAliases.cs
- CategoryAttribute.cs
- StickyNoteAnnotations.cs
- ListViewItemMouseHoverEvent.cs
- TypedElement.cs
- AssemblyCacheEntry.cs
- SafeTimerHandle.cs
- TextSearch.cs
- OperationContextScope.cs
- tooltip.cs
- EarlyBoundInfo.cs
- SiteMapNode.cs
- XmlSchemaSimpleTypeRestriction.cs
- HScrollProperties.cs
- AsymmetricKeyExchangeDeformatter.cs
- GridViewCancelEditEventArgs.cs
- QueryConverter.cs
- FieldMetadata.cs
- BitmapEffectrendercontext.cs
- SerializationInfoEnumerator.cs
- EntityCollectionChangedParams.cs
- TemplateComponentConnector.cs
- XmlBinaryWriterSession.cs
- PrintPreviewDialog.cs
- CommandID.cs
- StreamingContext.cs
- DataSourceXmlAttributeAttribute.cs
- ITextView.cs
- HttpCookieCollection.cs
- MappingException.cs
- TypeReference.cs
- PrtCap_Builder.cs
- ConfigurationSection.cs
- GroupItemAutomationPeer.cs
- GridViewActionList.cs
- DirectoryInfo.cs
- ConfigurationValue.cs
- BaseCollection.cs
- BookmarkCallbackWrapper.cs
- HandlerBase.cs
- ClientClassGenerator.cs
- AutomationPattern.cs
- HGlobalSafeHandle.cs
- RadioButton.cs
- BezierSegment.cs
- NameNode.cs
- TransformedBitmap.cs
- XmlDocumentSerializer.cs
- RegisteredArrayDeclaration.cs
- SizeChangedEventArgs.cs
- HttpRuntimeSection.cs
- PageParserFilter.cs
- AnyAllSearchOperator.cs