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
- PeerEndPoint.cs
- DragDeltaEventArgs.cs
- ProviderSettings.cs
- SkewTransform.cs
- MethodBuilderInstantiation.cs
- HttpCapabilitiesEvaluator.cs
- Rfc2898DeriveBytes.cs
- RotationValidation.cs
- CryptographicAttribute.cs
- MailAddress.cs
- ServiceEndpointElement.cs
- Int32RectConverter.cs
- WindowsGraphics.cs
- EntityDataSourceContainerNameItem.cs
- SqlProfileProvider.cs
- FontUnitConverter.cs
- ColorContextHelper.cs
- DescriptionAttribute.cs
- SQLConvert.cs
- LongPath.cs
- SQLMoney.cs
- EmbeddedMailObjectsCollection.cs
- TerminatorSinks.cs
- DynamicMetaObject.cs
- DefaultHttpHandler.cs
- IdentityNotMappedException.cs
- WorkflowRuntimeBehavior.cs
- UniqueIdentifierService.cs
- KeyValueConfigurationElement.cs
- EntityContainerRelationshipSet.cs
- RawStylusInput.cs
- EmptyReadOnlyDictionaryInternal.cs
- DataSourceCache.cs
- BigInt.cs
- xmlfixedPageInfo.cs
- DataGridViewComboBoxCell.cs
- OracleConnection.cs
- DesignerUtility.cs
- FatalException.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- HtmlUtf8RawTextWriter.cs
- FixedSOMPage.cs
- DataGridColumn.cs
- WebPartMenuStyle.cs
- CaseStatement.cs
- DataProviderNameConverter.cs
- SmtpFailedRecipientException.cs
- SqlServices.cs
- Unit.cs
- JpegBitmapDecoder.cs
- ValueTable.cs
- CookieHandler.cs
- Int16AnimationBase.cs
- XamlSerializer.cs
- TagNameToTypeMapper.cs
- MSG.cs
- ReadWriteSpinLock.cs
- EntitySqlQueryCacheEntry.cs
- datacache.cs
- FormViewDeletedEventArgs.cs
- DbConnectionPool.cs
- XsdDuration.cs
- EditingMode.cs
- SystemIPInterfaceStatistics.cs
- SortDescription.cs
- CellLabel.cs
- XmlConvert.cs
- SiteMapPathDesigner.cs
- SplitterPanel.cs
- RegexWorker.cs
- LinkDesigner.cs
- CodeAccessSecurityEngine.cs
- DoubleCollection.cs
- MDIWindowDialog.cs
- TreeBuilderBamlTranslator.cs
- CodeAccessPermission.cs
- MsmqAuthenticationMode.cs
- UIAgentMonitor.cs
- TableLayoutRowStyleCollection.cs
- DesignerRegionMouseEventArgs.cs
- MyContact.cs
- CultureInfo.cs
- EditBehavior.cs
- Symbol.cs
- LateBoundBitmapDecoder.cs
- CodeDirectionExpression.cs
- TryCatchDesigner.xaml.cs
- QilFactory.cs
- KeyedQueue.cs
- ValueUtilsSmi.cs
- ExpressionCopier.cs
- Listbox.cs
- DataTableNewRowEvent.cs
- StringHandle.cs
- SectionInformation.cs
- DataTableMappingCollection.cs
- SafeEventHandle.cs
- PerformanceCounterLib.cs
- XsltLoader.cs
- PeerNameRecord.cs