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
- UriScheme.cs
- SafePointer.cs
- Rectangle.cs
- InvalidOperationException.cs
- PageClientProxyGenerator.cs
- transactioncontext.cs
- AnnotationStore.cs
- XsdCachingReader.cs
- ConfigurationValue.cs
- TypeLibConverter.cs
- ObjectDataSourceDisposingEventArgs.cs
- ObjectConverter.cs
- InputQueue.cs
- ReturnType.cs
- Regex.cs
- DiscriminatorMap.cs
- MultipleViewProviderWrapper.cs
- BinarySerializer.cs
- HtmlControlPersistable.cs
- SplitterEvent.cs
- UnknownWrapper.cs
- SafeCryptoHandles.cs
- TextDecorationCollectionConverter.cs
- OverflowException.cs
- ProcessModule.cs
- MultiBinding.cs
- EmissiveMaterial.cs
- TransformConverter.cs
- ClientSettingsProvider.cs
- DbProviderServices.cs
- PlatformCulture.cs
- SystemColors.cs
- DateTimeUtil.cs
- PrimitiveXmlSerializers.cs
- ResizeGrip.cs
- DetailsViewUpdatedEventArgs.cs
- FixedPage.cs
- FlowLayoutPanel.cs
- CopyOnWriteList.cs
- DataService.cs
- TraceFilter.cs
- ExpressionCopier.cs
- SessionViewState.cs
- SqlBinder.cs
- NegatedCellConstant.cs
- FontStretches.cs
- ReadOnlyMetadataCollection.cs
- RelationshipWrapper.cs
- Vector.cs
- DockProviderWrapper.cs
- BinaryObjectReader.cs
- HtmlMeta.cs
- RuleSettings.cs
- BaseProcessor.cs
- FileVersionInfo.cs
- PagesSection.cs
- SynchronizedPool.cs
- FileClassifier.cs
- SqlServer2KCompatibilityAnnotation.cs
- IssuedSecurityTokenParameters.cs
- PrintDialog.cs
- FilterQueryOptionExpression.cs
- OracleConnectionFactory.cs
- IdleTimeoutMonitor.cs
- MemberInfoSerializationHolder.cs
- UrlPath.cs
- sitestring.cs
- StorageComplexPropertyMapping.cs
- BindingManagerDataErrorEventArgs.cs
- KeyNotFoundException.cs
- OdbcPermission.cs
- DebugTraceHelper.cs
- TransportBindingElementImporter.cs
- PropertyInfo.cs
- WsatExtendedInformation.cs
- PrintPreviewControl.cs
- QuaternionIndependentAnimationStorage.cs
- Command.cs
- EntityDesignerUtils.cs
- DependencyObject.cs
- VariableQuery.cs
- SpnegoTokenProvider.cs
- AvtEvent.cs
- TemplatePropertyEntry.cs
- DesignSurfaceEvent.cs
- Point3DKeyFrameCollection.cs
- HttpServerVarsCollection.cs
- Transform3DGroup.cs
- TemplatedControlDesigner.cs
- BamlTreeMap.cs
- EmptyEnumerator.cs
- StreamWriter.cs
- ConnectionPoolManager.cs
- MouseDevice.cs
- CounterSample.cs
- PieceNameHelper.cs
- DocumentViewerHelper.cs
- DateTimeParse.cs
- ArraySubsetEnumerator.cs
- FusionWrap.cs