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
- DBSchemaRow.cs
- HtmlControl.cs
- SetStoryboardSpeedRatio.cs
- FreeIndexList.cs
- ThreadStateException.cs
- Matrix3D.cs
- VerticalAlignConverter.cs
- TraceContextRecord.cs
- ParenthesizePropertyNameAttribute.cs
- DataService.cs
- pingexception.cs
- DtcInterfaces.cs
- TimeStampChecker.cs
- NullEntityWrapper.cs
- Attributes.cs
- XmlNamespaceMapping.cs
- GridViewColumnCollection.cs
- DataGridViewComponentPropertyGridSite.cs
- EmbeddedObject.cs
- BrowserDefinition.cs
- DataObjectFieldAttribute.cs
- BehaviorEditorPart.cs
- AdPostCacheSubstitution.cs
- CreateUserErrorEventArgs.cs
- LinqDataSourceView.cs
- MediaPlayer.cs
- UrlPath.cs
- TreeNode.cs
- RegexStringValidator.cs
- ClientTargetCollection.cs
- InputProcessorProfilesLoader.cs
- StandardToolWindows.cs
- GeometryModel3D.cs
- SkipQueryOptionExpression.cs
- ModelItemCollection.cs
- XmlDataSourceDesigner.cs
- FrameworkElementFactoryMarkupObject.cs
- DataGridViewSortCompareEventArgs.cs
- TransportSecurityProtocolFactory.cs
- TableLayoutPanelDesigner.cs
- StructuralCache.cs
- SqlCaseSimplifier.cs
- EventEntry.cs
- HebrewCalendar.cs
- FeatureManager.cs
- ProfileBuildProvider.cs
- ProxyAttribute.cs
- DependencyPropertyChangedEventArgs.cs
- TimeSpanOrInfiniteConverter.cs
- SHA1CryptoServiceProvider.cs
- DataConnectionHelper.cs
- HttpContext.cs
- WebConfigurationHost.cs
- TTSEvent.cs
- Types.cs
- StringFunctions.cs
- ConsumerConnectionPoint.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MenuAutomationPeer.cs
- SoapInteropTypes.cs
- PaperSize.cs
- CryptoApi.cs
- PreDigestedSignedInfo.cs
- CompilerErrorCollection.cs
- IconConverter.cs
- _AutoWebProxyScriptHelper.cs
- WorkflowApplicationCompletedException.cs
- WebPartEditVerb.cs
- RC2.cs
- SID.cs
- ClientSettingsSection.cs
- AssemblyCache.cs
- DefaultMemberAttribute.cs
- LinearGradientBrush.cs
- PointAnimation.cs
- ListControlActionList.cs
- glyphs.cs
- WebRequestModulesSection.cs
- StrokeNodeEnumerator.cs
- IgnoreSection.cs
- OleAutBinder.cs
- FilteredXmlReader.cs
- Missing.cs
- UpdatePanelTrigger.cs
- SqlClientPermission.cs
- DesignerExtenders.cs
- MailSettingsSection.cs
- SQLBoolean.cs
- ServicePoint.cs
- Timer.cs
- WeakKeyDictionary.cs
- IfAction.cs
- SmtpNetworkElement.cs
- RelOps.cs
- StylusPointCollection.cs
- CallSiteHelpers.cs
- SpinLock.cs
- IsolatedStorageFile.cs
- NativeMethods.cs
- SapiRecoContext.cs