Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / SessionPageStateSection.cs / 1305376 / 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; 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; 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
- EnumerableRowCollection.cs
- StringUtil.cs
- XmlSerializerSection.cs
- DocumentGridContextMenu.cs
- TagPrefixCollection.cs
- BamlLocalizationDictionary.cs
- DataMemberFieldEditor.cs
- DiagnosticsConfiguration.cs
- SchemaElementLookUpTable.cs
- DataGridViewHeaderCell.cs
- ErrorRuntimeConfig.cs
- ObjectContext.cs
- Converter.cs
- LineInfo.cs
- EntityStoreSchemaGenerator.cs
- TreeNodeCollectionEditor.cs
- ScriptingJsonSerializationSection.cs
- WebPartManagerInternals.cs
- TextTreeRootTextBlock.cs
- Message.cs
- XmlDocument.cs
- Graph.cs
- BooleanKeyFrameCollection.cs
- PenContexts.cs
- ZoneButton.cs
- RuleSettings.cs
- InputLanguageEventArgs.cs
- ClientRequest.cs
- HtmlShimManager.cs
- XmlResolver.cs
- ResolveNameEventArgs.cs
- ScrollData.cs
- XmlILIndex.cs
- OperationInvokerBehavior.cs
- CodeDirectiveCollection.cs
- SqlRecordBuffer.cs
- PartitionedStream.cs
- RoutedUICommand.cs
- SqlTrackingService.cs
- XmlCharCheckingWriter.cs
- DefaultValidator.cs
- RtfToXamlReader.cs
- NullReferenceException.cs
- SearchForVirtualItemEventArgs.cs
- ChannelManagerService.cs
- HuffModule.cs
- SettingsPropertyValue.cs
- EventRouteFactory.cs
- Maps.cs
- EntityDesignerUtils.cs
- WmiEventSink.cs
- ProfileModule.cs
- RectangleConverter.cs
- UncommonField.cs
- SchemaObjectWriter.cs
- NativeMethods.cs
- ProfileParameter.cs
- WindowsTreeView.cs
- contentDescriptor.cs
- DesigntimeLicenseContextSerializer.cs
- _ConnectStream.cs
- ExpressionBindingsDialog.cs
- SchemaEntity.cs
- CalendarDayButton.cs
- TextServicesCompartmentContext.cs
- CodeExpressionCollection.cs
- KeyGestureConverter.cs
- SignedXml.cs
- Annotation.cs
- TreeViewImageIndexConverter.cs
- counter.cs
- ParallelDesigner.xaml.cs
- EncoderNLS.cs
- TraceListeners.cs
- DictionaryChange.cs
- ModelUIElement3D.cs
- GroupItem.cs
- SapiInterop.cs
- LinqDataSourceValidationException.cs
- HtmlControlPersistable.cs
- Config.cs
- precedingquery.cs
- UpdateTranslator.cs
- MobileComponentEditorPage.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- TableAdapterManagerHelper.cs
- SqlDataSourceConnectionPanel.cs
- TextBox.cs
- ScriptingWebServicesSectionGroup.cs
- base64Transforms.cs
- SqlEnums.cs
- CellQuery.cs
- UnsafeNativeMethods.cs
- SizeAnimationBase.cs
- MdiWindowListItemConverter.cs
- NetworkInterface.cs
- DateTimeConverter.cs
- RsaElement.cs
- PersonalizationState.cs
- XmlSecureResolver.cs