Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / PageStatePersister.cs / 1305376 / PageStatePersister.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Collections; 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; 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
- DataGridCellItemAutomationPeer.cs
- MobileUserControl.cs
- Util.cs
- EditingMode.cs
- DBCSCodePageEncoding.cs
- VisualStateGroup.cs
- CookielessHelper.cs
- CryptoProvider.cs
- Stream.cs
- Exceptions.cs
- MasterPageBuildProvider.cs
- WebPartEditVerb.cs
- HttpAsyncResult.cs
- DrawingState.cs
- RpcResponse.cs
- mediapermission.cs
- TemplateBamlTreeBuilder.cs
- BufferAllocator.cs
- Thread.cs
- CalendarDay.cs
- TransportReplyChannelAcceptor.cs
- SettingsBase.cs
- SHA256.cs
- DesignSurfaceEvent.cs
- SafeReversePInvokeHandle.cs
- DataSourceControlBuilder.cs
- UserPersonalizationStateInfo.cs
- SystemWebSectionGroup.cs
- ButtonField.cs
- PageAsyncTask.cs
- AttachedPropertyDescriptor.cs
- Timer.cs
- Queue.cs
- WindowsScrollBarBits.cs
- PropertyItem.cs
- WindowsComboBox.cs
- MetadataSource.cs
- FixedPosition.cs
- SchemaMerger.cs
- WebPartManager.cs
- SvcMapFileLoader.cs
- SettingsBindableAttribute.cs
- LinkLabel.cs
- StructuredProperty.cs
- TableLayoutStyle.cs
- RectangleHotSpot.cs
- WebScriptEnablingElement.cs
- EntityClassGenerator.cs
- MarkupExtensionParser.cs
- x509store.cs
- FontUnit.cs
- ToolStripDropDownMenu.cs
- BlockCollection.cs
- WebHttpSecurity.cs
- SqlNodeTypeOperators.cs
- ValidatingCollection.cs
- MatrixValueSerializer.cs
- _IPv4Address.cs
- ListItem.cs
- WindowsStatusBar.cs
- Hyperlink.cs
- WindowsRebar.cs
- SafePEFileHandle.cs
- CompressedStack.cs
- TextElementAutomationPeer.cs
- ImportedNamespaceContextItem.cs
- DataRelationCollection.cs
- BitmapCacheBrush.cs
- CryptoProvider.cs
- ScrollEventArgs.cs
- CriticalExceptions.cs
- TreeViewItemAutomationPeer.cs
- ToolStripGrip.cs
- SudsParser.cs
- TimestampInformation.cs
- ThreadInterruptedException.cs
- ColorConvertedBitmapExtension.cs
- BindingMAnagerBase.cs
- MatrixValueSerializer.cs
- SafeRightsManagementHandle.cs
- EntityParameterCollection.cs
- XmlWriterSettings.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StringResourceManager.cs
- CompressionTracing.cs
- StreamingContext.cs
- WebControlParameterProxy.cs
- BamlCollectionHolder.cs
- FamilyMapCollection.cs
- RelatedCurrencyManager.cs
- Missing.cs
- InheritablePropertyChangeInfo.cs
- FastPropertyAccessor.cs
- DbConnectionPoolGroupProviderInfo.cs
- WebPartVerb.cs
- COM2TypeInfoProcessor.cs
- XXXInfos.cs
- TextServicesCompartmentContext.cs
- DesignerActionKeyboardBehavior.cs
- DictionaryEditChange.cs