Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / SessionPageStateSection.cs / 2 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- validationstate.cs
- ObjectCache.cs
- ToolZone.cs
- CharacterBufferReference.cs
- SessionStateItemCollection.cs
- TargetControlTypeAttribute.cs
- COM2ExtendedUITypeEditor.cs
- TraceUtility.cs
- IgnorePropertiesAttribute.cs
- TypefaceCollection.cs
- HtmlEncodedRawTextWriter.cs
- PropertyToken.cs
- Point3DCollectionConverter.cs
- XamlBrushSerializer.cs
- TCPListener.cs
- HierarchicalDataSourceDesigner.cs
- wgx_commands.cs
- SmtpNegotiateAuthenticationModule.cs
- ParallelQuery.cs
- SQLDecimalStorage.cs
- UnitySerializationHolder.cs
- OdbcParameter.cs
- BindingSource.cs
- AssemblyAssociatedContentFileAttribute.cs
- _BasicClient.cs
- ScrollItemPatternIdentifiers.cs
- CodeBinaryOperatorExpression.cs
- MergeFailedEvent.cs
- DocumentSchemaValidator.cs
- ExternalException.cs
- EntityDataSourceState.cs
- ScaleTransform.cs
- OutputCacheProfile.cs
- MetadataUtilsSmi.cs
- ToolStripItem.cs
- Point3DConverter.cs
- Quad.cs
- precedingquery.cs
- CharEntityEncoderFallback.cs
- StringExpressionSet.cs
- IgnoreFileBuildProvider.cs
- DPAPIProtectedConfigurationProvider.cs
- ViewPort3D.cs
- DescendentsWalker.cs
- EntitySetDataBindingList.cs
- SystemUdpStatistics.cs
- PrinterUnitConvert.cs
- NamespaceEmitter.cs
- WeakReferenceList.cs
- HttpProfileBase.cs
- GenerateHelper.cs
- SystemInfo.cs
- ResourcePermissionBaseEntry.cs
- GridLengthConverter.cs
- PingReply.cs
- SchemaNames.cs
- SessionEndedEventArgs.cs
- WebService.cs
- ExecutionContext.cs
- WebPartChrome.cs
- XmlILAnnotation.cs
- CultureInfoConverter.cs
- DeleteHelper.cs
- ExtendedProtectionPolicy.cs
- WindowsListViewSubItem.cs
- ProxyElement.cs
- TwoPhaseCommit.cs
- CellLabel.cs
- CriticalFinalizerObject.cs
- MimeParameterWriter.cs
- XmlEntityReference.cs
- CharUnicodeInfo.cs
- ADMembershipUser.cs
- basecomparevalidator.cs
- BatchStream.cs
- Module.cs
- ProxyAttribute.cs
- Delay.cs
- SimpleTextLine.cs
- CallbackValidatorAttribute.cs
- Serializer.cs
- MethodBuilder.cs
- RepeatInfo.cs
- WindowsTokenRoleProvider.cs
- RadioButtonStandardAdapter.cs
- HttpTransportBindingElement.cs
- CodeCompileUnit.cs
- SqlRewriteScalarSubqueries.cs
- MatrixKeyFrameCollection.cs
- BooleanConverter.cs
- ResXResourceSet.cs
- RawMouseInputReport.cs
- BamlMapTable.cs
- EntityDataSourceDataSelectionPanel.cs
- AppDomainShutdownMonitor.cs
- HttpClientCertificate.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- StringKeyFrameCollection.cs
- ZipIOBlockManager.cs
- XamlPathDataSerializer.cs