Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HttpWebRequest.cs
- EpmContentDeSerializer.cs
- Simplifier.cs
- TextTreeExtractElementUndoUnit.cs
- CanonicalFontFamilyReference.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- SourceLineInfo.cs
- TemplateControlBuildProvider.cs
- MessageDecoder.cs
- SqlDataSourceCache.cs
- EventRoute.cs
- DBParameter.cs
- FaultConverter.cs
- Model3D.cs
- IgnoreFileBuildProvider.cs
- FileDialog.cs
- compensatingcollection.cs
- Propagator.Evaluator.cs
- SpeakCompletedEventArgs.cs
- BlurEffect.cs
- CheckBox.cs
- PointLightBase.cs
- RegexCapture.cs
- ScrollPatternIdentifiers.cs
- WsatTransactionFormatter.cs
- ThreadNeutralSemaphore.cs
- CodeAttributeArgumentCollection.cs
- WebProxyScriptElement.cs
- DataTable.cs
- SmiMetaDataProperty.cs
- ParameterEditorUserControl.cs
- MediaEntryAttribute.cs
- BitmapScalingModeValidation.cs
- _NetworkingPerfCounters.cs
- LayoutTable.cs
- Rss20ItemFormatter.cs
- SoapServerProtocol.cs
- WindowsListViewGroupHelper.cs
- ContainerVisual.cs
- SoapMessage.cs
- MissingMemberException.cs
- QueueProcessor.cs
- ProfileSettingsCollection.cs
- ConfigurationValidatorBase.cs
- EmptyImpersonationContext.cs
- FileReader.cs
- TreeNodeStyle.cs
- HighContrastHelper.cs
- ContextQuery.cs
- DbConnectionPoolOptions.cs
- ContainerControl.cs
- SetStoryboardSpeedRatio.cs
- StructuredTypeEmitter.cs
- RoutedEventArgs.cs
- UIElementIsland.cs
- SmtpLoginAuthenticationModule.cs
- ListControl.cs
- StringDictionary.cs
- CallbackHandler.cs
- XMLSyntaxException.cs
- SimpleExpression.cs
- XPathParser.cs
- TrustVersion.cs
- ValidationPropertyAttribute.cs
- ProfileSettings.cs
- MarkupExtensionParser.cs
- TypeHelpers.cs
- OracleInternalConnection.cs
- MaskedTextProvider.cs
- Debug.cs
- IDispatchConstantAttribute.cs
- DataRecordInternal.cs
- TypeDescriptionProvider.cs
- Vector3DCollection.cs
- InsufficientMemoryException.cs
- Region.cs
- RegistrationProxy.cs
- DbCommandDefinition.cs
- XmlElementAttributes.cs
- AdornerHitTestResult.cs
- ObjectQueryState.cs
- UnmanagedHandle.cs
- WebBrowser.cs
- SoapServerMessage.cs
- ByteRangeDownloader.cs
- NamedElement.cs
- ZipIOLocalFileDataDescriptor.cs
- ClientSection.cs
- DirectoryNotFoundException.cs
- PaintEvent.cs
- SecurityPermission.cs
- StylusPointPropertyUnit.cs
- RoleManagerSection.cs
- Helpers.cs
- VirtualPathUtility.cs
- TextSearch.cs
- CharAnimationBase.cs
- HandlerFactoryCache.cs
- WpfXamlType.cs
- SafeProcessHandle.cs