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
- LassoSelectionBehavior.cs
- ParameterExpression.cs
- TransformerConfigurationWizardBase.cs
- StickyNoteAnnotations.cs
- Label.cs
- HuffmanTree.cs
- HyperLink.cs
- ProcessStartInfo.cs
- HtmlInputCheckBox.cs
- CallTemplateAction.cs
- Maps.cs
- DataSourceGeneratorException.cs
- BoundPropertyEntry.cs
- Assert.cs
- AvTrace.cs
- XmlRawWriter.cs
- SoapMessage.cs
- Util.cs
- SystemGatewayIPAddressInformation.cs
- HttpUnhandledOperationInvoker.cs
- XD.cs
- StateRuntime.cs
- JsonStringDataContract.cs
- OutputScope.cs
- OleDbDataAdapter.cs
- DiscoveryClientProtocol.cs
- SymbolUsageManager.cs
- RegexCode.cs
- PersonalizationProviderHelper.cs
- RefreshEventArgs.cs
- FileDataSourceCache.cs
- OutputChannelBinder.cs
- StatusBarPanelClickEvent.cs
- COM2FontConverter.cs
- UIElement.cs
- UIElementHelper.cs
- WebPartZoneAutoFormat.cs
- MD5Cng.cs
- WsiProfilesElement.cs
- ObjectHandle.cs
- SystemIPInterfaceProperties.cs
- ToolStripItemBehavior.cs
- StringToken.cs
- SizeAnimationClockResource.cs
- ContentControl.cs
- DataGridState.cs
- DelegatingTypeDescriptionProvider.cs
- FlowLayoutPanel.cs
- TdsParserHelperClasses.cs
- ErrorLog.cs
- SafeNativeMethods.cs
- FormViewUpdateEventArgs.cs
- SettingsContext.cs
- QuotedPrintableStream.cs
- LicenseContext.cs
- HwndHost.cs
- DefaultTypeArgumentAttribute.cs
- ThemeDirectoryCompiler.cs
- RelationshipManager.cs
- XmlAnyElementAttribute.cs
- XmlSchemaNotation.cs
- InvokePattern.cs
- DbMetaDataColumnNames.cs
- Accessible.cs
- MD5.cs
- VideoDrawing.cs
- ElementProxy.cs
- SimpleHandlerBuildProvider.cs
- PointCollectionConverter.cs
- MessageQueuePermissionAttribute.cs
- ServiceMetadataPublishingElement.cs
- ToolboxControl.cs
- SafeEventHandle.cs
- TextServicesCompartmentContext.cs
- DesignerDataTable.cs
- AsyncResult.cs
- ClientBuildManager.cs
- PersistenceException.cs
- InstanceHandle.cs
- AlternationConverter.cs
- InputBinding.cs
- ScaleTransform3D.cs
- ExecutionTracker.cs
- CompoundFileStorageReference.cs
- ToolboxBitmapAttribute.cs
- TimeoutValidationAttribute.cs
- DataGridColumn.cs
- RectAnimationBase.cs
- MenuItemAutomationPeer.cs
- DropDownHolder.cs
- infer.cs
- XmlnsCache.cs
- HandlerFactoryWrapper.cs
- RuntimeVariableList.cs
- CompleteWizardStep.cs
- EndOfStreamException.cs
- DeliveryStrategy.cs
- DateTimeValueSerializerContext.cs
- SqlTransaction.cs
- GregorianCalendar.cs