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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BinaryParser.cs
- Rfc4050KeyFormatter.cs
- MetadataCache.cs
- SystemInformation.cs
- UnsafeNativeMethodsMilCoreApi.cs
- DataGridItem.cs
- FieldMetadata.cs
- DictionaryChange.cs
- ProjectionCamera.cs
- WebPageTraceListener.cs
- WmlImageAdapter.cs
- BindableTemplateBuilder.cs
- _SecureChannel.cs
- HandleExceptionArgs.cs
- BlurEffect.cs
- ActivityExecutionContext.cs
- RawMouseInputReport.cs
- Merger.cs
- InstanceDataCollection.cs
- TypeToTreeConverter.cs
- CacheRequest.cs
- SafeNativeMethods.cs
- IntSecurity.cs
- CompositeActivityTypeDescriptorProvider.cs
- LinearGradientBrush.cs
- FixedBufferAttribute.cs
- Zone.cs
- HttpChannelListener.cs
- ControllableStoryboardAction.cs
- AnimationLayer.cs
- Sql8ConformanceChecker.cs
- NativeObjectSecurity.cs
- StyleBamlRecordReader.cs
- LZCodec.cs
- XmlSubtreeReader.cs
- ProbeMatchesCD1.cs
- ProfileProvider.cs
- ScriptResourceMapping.cs
- DetailsViewUpdateEventArgs.cs
- ServiceCredentialsElement.cs
- EntityDataSourceChangingEventArgs.cs
- CursorConverter.cs
- DomNameTable.cs
- SortQuery.cs
- EventLogEntry.cs
- SecurityDescriptor.cs
- adornercollection.cs
- HwndSourceParameters.cs
- HMAC.cs
- SoapDocumentMethodAttribute.cs
- PropertyValueChangedEvent.cs
- GridView.cs
- CfgParser.cs
- ComponentResourceManager.cs
- DataGridViewCellStyleConverter.cs
- Canvas.cs
- ObjectResult.cs
- XomlDesignerLoader.cs
- AsyncResult.cs
- SessionStateItemCollection.cs
- GroupDescription.cs
- ControlCollection.cs
- CatalogPartChrome.cs
- RowToParametersTransformer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ProfileEventArgs.cs
- KeyInterop.cs
- RectangleF.cs
- MethodBuilder.cs
- WebServiceTypeData.cs
- DataColumnSelectionConverter.cs
- Missing.cs
- CodeValidator.cs
- OdbcParameterCollection.cs
- SocketException.cs
- DataSetFieldSchema.cs
- NativeWrapper.cs
- RIPEMD160.cs
- SqlPersonalizationProvider.cs
- Variant.cs
- BinaryCommonClasses.cs
- NetworkAddressChange.cs
- newinstructionaction.cs
- ListInitExpression.cs
- StrokeNodeEnumerator.cs
- ACL.cs
- TabRenderer.cs
- KeyGestureConverter.cs
- WebZone.cs
- LocalizableAttribute.cs
- ThreadExceptionEvent.cs
- TypeCollectionDesigner.xaml.cs
- SqlNodeAnnotations.cs
- ListViewInsertEventArgs.cs
- HtmlWindow.cs
- RichTextBoxAutomationPeer.cs
- HMACRIPEMD160.cs
- ToggleButton.cs
- ACE.cs
- OperationCanceledException.cs