Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AdvancedBindingPropertyDescriptor.cs
- SqlConnection.cs
- RuntimeResourceSet.cs
- Point3DCollectionConverter.cs
- TemplateParser.cs
- PriorityItem.cs
- StatusBarItem.cs
- ConnectionsZoneDesigner.cs
- ExpressionWriter.cs
- XmlCountingReader.cs
- UserPreferenceChangedEventArgs.cs
- ComboBox.cs
- WebRequestModuleElementCollection.cs
- Rect3DValueSerializer.cs
- LicenseContext.cs
- HybridDictionary.cs
- GeometryGroup.cs
- CardSpaceSelector.cs
- Base64Stream.cs
- PeerInvitationResponse.cs
- SpotLight.cs
- SqlBuilder.cs
- QueryCacheManager.cs
- UnmanagedMemoryStream.cs
- ServiceMetadataBehavior.cs
- StylusPlugin.cs
- Part.cs
- PatternMatchRules.cs
- ResourceAttributes.cs
- DefaultPrintController.cs
- UnaryExpression.cs
- TypefaceMetricsCache.cs
- SynchronizedDispatch.cs
- JsonByteArrayDataContract.cs
- Schema.cs
- TcpClientSocketManager.cs
- SequenceQuery.cs
- ThrowHelper.cs
- TraceAsyncResult.cs
- InputQueueChannelAcceptor.cs
- WindowsTokenRoleProvider.cs
- PaginationProgressEventArgs.cs
- SafeNativeMethods.cs
- xdrvalidator.cs
- HtmlInputText.cs
- DependencySource.cs
- MouseEventArgs.cs
- Debug.cs
- ParameterExpression.cs
- ITextView.cs
- WebPartTransformer.cs
- AutomationPatternInfo.cs
- invalidudtexception.cs
- SequentialOutput.cs
- XmlSchemaImport.cs
- RootAction.cs
- XMLSyntaxException.cs
- Fx.cs
- WorkItem.cs
- NameScopePropertyAttribute.cs
- RectangleConverter.cs
- ProjectionPlanCompiler.cs
- PolicyException.cs
- CalculatedColumn.cs
- GregorianCalendar.cs
- DesignUtil.cs
- DataObjectMethodAttribute.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- VScrollProperties.cs
- DesignerLoader.cs
- FileAuthorizationModule.cs
- WebRequest.cs
- QilIterator.cs
- SQLInt32.cs
- HtmlUtf8RawTextWriter.cs
- CodeEntryPointMethod.cs
- NavigationPropertyEmitter.cs
- ThreadStaticAttribute.cs
- FileCodeGroup.cs
- HwndSubclass.cs
- WebBodyFormatMessageProperty.cs
- UnicodeEncoding.cs
- AddressAccessDeniedException.cs
- QuarticEase.cs
- LineUtil.cs
- EncryptedReference.cs
- CompilerScope.cs
- SQlBooleanStorage.cs
- StrongName.cs
- GridPattern.cs
- BamlResourceContent.cs
- PartitionedDataSource.cs
- PopupEventArgs.cs
- FixedSOMTableCell.cs
- Overlapped.cs
- StrokeFIndices.cs
- clipboard.cs
- ProfileProvider.cs
- WindowsScrollBarBits.cs
- ElementsClipboardData.cs