Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / PageStatePersister.cs / 2 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataBinding.cs
- SerializationInfoEnumerator.cs
- RenamedEventArgs.cs
- EarlyBoundInfo.cs
- PersonalizationAdministration.cs
- TextProperties.cs
- Iis7Helper.cs
- XPathPatternParser.cs
- VariantWrapper.cs
- SqlNamer.cs
- FormsAuthentication.cs
- DirectoryNotFoundException.cs
- MenuItemBinding.cs
- MessageContractAttribute.cs
- FileFormatException.cs
- LifetimeServices.cs
- TCEAdapterGenerator.cs
- ObjectStateManager.cs
- DataDocumentXPathNavigator.cs
- panel.cs
- ExpressionsCollectionEditor.cs
- FormsAuthenticationEventArgs.cs
- httpapplicationstate.cs
- ToolStripPanelRenderEventArgs.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- CachedPathData.cs
- Win32Exception.cs
- RotateTransform3D.cs
- AutomationPeer.cs
- LinkLabel.cs
- PartialToken.cs
- CompiledQuery.cs
- ConvertTextFrag.cs
- LogRestartAreaEnumerator.cs
- HttpResponseHeader.cs
- ComponentChangingEvent.cs
- LogicalChannel.cs
- TypeExtensionSerializer.cs
- FunctionParameter.cs
- BindingExpressionUncommonField.cs
- Rect.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- MachineKeyConverter.cs
- DefaultCommandExtensionCallback.cs
- ListenDesigner.cs
- AddingNewEventArgs.cs
- IListConverters.cs
- HtmlControlPersistable.cs
- ContainerAction.cs
- RuleInfoComparer.cs
- XmlMapping.cs
- UpdateTracker.cs
- DockAndAnchorLayout.cs
- ObservableDictionary.cs
- CompositeCollectionView.cs
- DebugTracing.cs
- DefaultParameterValueAttribute.cs
- PhysicalAddress.cs
- HandlerMappingMemo.cs
- ReversePositionQuery.cs
- ConvertersCollection.cs
- httpstaticobjectscollection.cs
- BuildManagerHost.cs
- ToolboxControl.cs
- EmptyStringExpandableObjectConverter.cs
- SortDescription.cs
- Border.cs
- TagPrefixInfo.cs
- ReadOnlyState.cs
- EntityDataSourceChangingEventArgs.cs
- XmlSchemaAll.cs
- OdbcConnectionStringbuilder.cs
- Matrix.cs
- AddDataControlFieldDialog.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- MenuCommandService.cs
- X509SecurityTokenAuthenticator.cs
- CodeDomSerializationProvider.cs
- InputMethod.cs
- ChangeProcessor.cs
- Nullable.cs
- DbgUtil.cs
- EventMappingSettingsCollection.cs
- ImageCodecInfoPrivate.cs
- IPPacketInformation.cs
- _NegotiateClient.cs
- XmlSchemaComplexContent.cs
- OracleDataReader.cs
- CustomAssemblyResolver.cs
- SQLDecimalStorage.cs
- WebPartChrome.cs
- httpstaticobjectscollection.cs
- DoubleCollectionValueSerializer.cs
- PropertyConverter.cs
- BitmapEffectState.cs
- BasicKeyConstraint.cs
- ClientSponsor.cs
- SystemUnicastIPAddressInformation.cs
- StrictAndMessageFilter.cs
- LinqDataView.cs