Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DataObjectFieldAttribute.cs
- PeekCompletedEventArgs.cs
- XXXOnTypeBuilderInstantiation.cs
- SizeChangedInfo.cs
- BaseServiceProvider.cs
- DataColumnMappingCollection.cs
- DropAnimation.xaml.cs
- datacache.cs
- XmlSchemaComplexContentRestriction.cs
- HttpCachePolicy.cs
- ExtentKey.cs
- TableHeaderCell.cs
- Invariant.cs
- ClipboardData.cs
- DeferredSelectedIndexReference.cs
- RectangleGeometry.cs
- DataGridRowsPresenter.cs
- SqlCacheDependency.cs
- ByteRangeDownloader.cs
- ProcessManager.cs
- ServiceBehaviorElementCollection.cs
- RouteData.cs
- PolyBezierSegmentFigureLogic.cs
- PingOptions.cs
- SessionStateUtil.cs
- SchemaDeclBase.cs
- ContractAdapter.cs
- HtmlImageAdapter.cs
- ListViewPagedDataSource.cs
- Pointer.cs
- TableAutomationPeer.cs
- PlanCompiler.cs
- _Semaphore.cs
- ItemCollection.cs
- PerfCounterSection.cs
- CacheEntry.cs
- GenerateTemporaryTargetAssembly.cs
- GridViewColumnHeaderAutomationPeer.cs
- EnumBuilder.cs
- OutArgument.cs
- HandlerBase.cs
- InteropBitmapSource.cs
- LicenseException.cs
- AnnotationComponentManager.cs
- GeneralTransform3DGroup.cs
- ObjectReaderCompiler.cs
- SqlInfoMessageEvent.cs
- FileDialogCustomPlace.cs
- TransactionContextManager.cs
- SettingsPropertyIsReadOnlyException.cs
- WebDisplayNameAttribute.cs
- LogEntry.cs
- Nodes.cs
- PropertyPanel.cs
- PeerContact.cs
- BufferedWebEventProvider.cs
- MD5CryptoServiceProvider.cs
- IgnoreSectionHandler.cs
- EdmEntityTypeAttribute.cs
- DatagridviewDisplayedBandsData.cs
- ClickablePoint.cs
- UnsafeNativeMethodsCLR.cs
- HMACRIPEMD160.cs
- TextDocumentView.cs
- LinqDataSourceSelectEventArgs.cs
- DataViewManager.cs
- precedingsibling.cs
- ITextView.cs
- _CommandStream.cs
- ResourceReader.cs
- TheQuery.cs
- ImageMapEventArgs.cs
- DefaultWorkflowLoaderService.cs
- DiscardableAttribute.cs
- SpellerHighlightLayer.cs
- BitmapDownload.cs
- DPAPIProtectedConfigurationProvider.cs
- EasingKeyFrames.cs
- ContainerParaClient.cs
- AncestorChangedEventArgs.cs
- HttpModuleCollection.cs
- ShapingEngine.cs
- basenumberconverter.cs
- BufferBuilder.cs
- NullableDecimalSumAggregationOperator.cs
- ViewStateException.cs
- Helpers.cs
- SendMailErrorEventArgs.cs
- CompilerGlobalScopeAttribute.cs
- MimeBasePart.cs
- AsyncResult.cs
- TreeViewImageIndexConverter.cs
- MenuItemBindingCollection.cs
- SaveFileDialogDesigner.cs
- BlobPersonalizationState.cs
- UniformGrid.cs
- AxImporter.cs
- Operators.cs
- SignalGate.cs
- MarkupCompilePass1.cs