Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / PageStatePersister.cs / 1 / PageStatePersister.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Collections; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class PageStatePersister { private Page _page; private object _viewState; private object _controlState; private IStateFormatter _stateFormatter; protected PageStatePersister (Page page) { if (page == null) { throw new ArgumentNullException("page", SR.GetString(SR.PageStatePersister_PageCannotBeNull)); } _page = page; } public object ControlState { get { return _controlState; } set { _controlState = value; } } ////// Provides the formatter used to serialize and deserialize the object graph representing the /// state to be persisted. /// protected IStateFormatter StateFormatter { get { if (_stateFormatter == null) { _stateFormatter = Page.CreateStateFormatter(); } return _stateFormatter; } } protected Page Page { get { return _page; } set { _page = value; } } public object ViewState { get { return _viewState; } set { _viewState = value; } } public abstract void Load(); public abstract void Save(); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Collections; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class PageStatePersister { private Page _page; private object _viewState; private object _controlState; private IStateFormatter _stateFormatter; protected PageStatePersister (Page page) { if (page == null) { throw new ArgumentNullException("page", SR.GetString(SR.PageStatePersister_PageCannotBeNull)); } _page = page; } public object ControlState { get { return _controlState; } set { _controlState = value; } } ////// Provides the formatter used to serialize and deserialize the object graph representing the /// state to be persisted. /// protected IStateFormatter StateFormatter { get { if (_stateFormatter == null) { _stateFormatter = Page.CreateStateFormatter(); } return _stateFormatter; } } protected Page Page { get { return _page; } set { _page = value; } } public object ViewState { get { return _viewState; } set { _viewState = value; } } public abstract void Load(); public abstract void Save(); } } // 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
- TextDecoration.cs
- DataGridItemAutomationPeer.cs
- DbCommandTree.cs
- Substitution.cs
- HttpRawResponse.cs
- TraceLog.cs
- SafeMILHandleMemoryPressure.cs
- ExpressionsCollectionConverter.cs
- DbMetaDataCollectionNames.cs
- TextEditorTables.cs
- HttpRequestCacheValidator.cs
- SqlStream.cs
- EventLogPropertySelector.cs
- WebBrowserPermission.cs
- CompensationTokenData.cs
- TraceXPathNavigator.cs
- Membership.cs
- Globals.cs
- StrokeFIndices.cs
- ContentPresenter.cs
- RijndaelCryptoServiceProvider.cs
- GraphicsPath.cs
- XmlAttributeOverrides.cs
- EtwProvider.cs
- WebPartsPersonalization.cs
- __TransparentProxy.cs
- UpdateCommand.cs
- DynamicControl.cs
- DataBindingExpressionBuilder.cs
- PixelFormat.cs
- Rotation3DAnimationBase.cs
- ProcessHostConfigUtils.cs
- SrgsToken.cs
- ImplicitInputBrush.cs
- Socket.cs
- TypeReference.cs
- BitmapEffect.cs
- ComplexBindingPropertiesAttribute.cs
- BitArray.cs
- cookie.cs
- _ListenerResponseStream.cs
- PropertyValueUIItem.cs
- AppSecurityManager.cs
- XmlIgnoreAttribute.cs
- TableItemStyle.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- IISMapPath.cs
- XmlMemberMapping.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DBCommand.cs
- DataGridItemCollection.cs
- namescope.cs
- CodeRemoveEventStatement.cs
- LinearGradientBrush.cs
- ProxyAttribute.cs
- ProjectionQueryOptionExpression.cs
- ContextBase.cs
- ServicePoint.cs
- CriticalHandle.cs
- CollectionConverter.cs
- MemberDomainMap.cs
- Claim.cs
- ConsoleEntryPoint.cs
- CompensateDesigner.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- MatrixTransform.cs
- GZipObjectSerializer.cs
- ColorConverter.cs
- ColorConverter.cs
- TreeBuilderBamlTranslator.cs
- RadioButtonList.cs
- _emptywebproxy.cs
- regiisutil.cs
- SignatureToken.cs
- DbException.cs
- ReadOnlyCollectionBase.cs
- WebControlParameterProxy.cs
- DataGridViewRowCancelEventArgs.cs
- CodeAttributeArgument.cs
- DataGridViewTextBoxColumn.cs
- InvalidAsynchronousStateException.cs
- SocketAddress.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- MenuRenderer.cs
- X509SubjectKeyIdentifierClause.cs
- TableCellAutomationPeer.cs
- Viewport2DVisual3D.cs
- SafeSystemMetrics.cs
- TypeReference.cs
- Hyperlink.cs
- PropertyInformation.cs
- DBPropSet.cs
- ExceptionRoutedEventArgs.cs
- SourceFileInfo.cs
- CalendarTable.cs
- BamlLocalizableResourceKey.cs
- Cursors.cs
- XmlSchemaValidator.cs
- RegexGroup.cs
- CompoundFileStorageReference.cs