Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationState.cs / 1305376 / PersonalizationState.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Web; using System.Web.Util; ////// public abstract class PersonalizationState { private WebPartManager _webPartManager; private bool _dirty; ////// protected PersonalizationState(WebPartManager webPartManager) { if (webPartManager == null) { throw new ArgumentNullException("webPartManager"); } _webPartManager = webPartManager; } ////// public bool IsDirty { get { return _dirty; } } ////// public abstract bool IsEmpty { get; } ////// public WebPartManager WebPartManager { get { return _webPartManager; } } ////// public abstract void ApplyWebPartPersonalization(WebPart webPart); ////// public abstract void ApplyWebPartManagerPersonalization(); ////// public abstract void ExtractWebPartPersonalization(WebPart webPart); ////// public abstract void ExtractWebPartManagerPersonalization(); // Returns the AuthorizationFilter string for a WebPart before it is instantiated // Returns null if there is no personalized value for AuthorizationFilter public abstract string GetAuthorizationFilter(string webPartID); ////// protected void SetDirty() { _dirty = true; } ////// public abstract void SetWebPartDirty(WebPart webPart); ////// public abstract void SetWebPartManagerDirty(); ////// protected void ValidateWebPart(WebPart webPart) { if (webPart == null) { throw new ArgumentNullException("webPart"); } if (_webPartManager.WebParts.Contains(webPart) == false) { throw new ArgumentException(SR.GetString(SR.UnknownWebPart), "webPart"); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Web; using System.Web.Util; ////// public abstract class PersonalizationState { private WebPartManager _webPartManager; private bool _dirty; ////// protected PersonalizationState(WebPartManager webPartManager) { if (webPartManager == null) { throw new ArgumentNullException("webPartManager"); } _webPartManager = webPartManager; } ////// public bool IsDirty { get { return _dirty; } } ////// public abstract bool IsEmpty { get; } ////// public WebPartManager WebPartManager { get { return _webPartManager; } } ////// public abstract void ApplyWebPartPersonalization(WebPart webPart); ////// public abstract void ApplyWebPartManagerPersonalization(); ////// public abstract void ExtractWebPartPersonalization(WebPart webPart); ////// public abstract void ExtractWebPartManagerPersonalization(); // Returns the AuthorizationFilter string for a WebPart before it is instantiated // Returns null if there is no personalized value for AuthorizationFilter public abstract string GetAuthorizationFilter(string webPartID); ////// protected void SetDirty() { _dirty = true; } ////// public abstract void SetWebPartDirty(WebPart webPart); ////// public abstract void SetWebPartManagerDirty(); ////// protected void ValidateWebPart(WebPart webPart) { if (webPart == null) { throw new ArgumentNullException("webPart"); } if (_webPartManager.WebParts.Contains(webPart) == false) { throw new ArgumentException(SR.GetString(SR.UnknownWebPart), "webPart"); } } } } // 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
- PanelStyle.cs
- UIntPtr.cs
- RbTree.cs
- Process.cs
- ControlIdConverter.cs
- IteratorDescriptor.cs
- CollectionBase.cs
- SafeRegistryKey.cs
- EdmItemCollection.cs
- DataGridViewCheckBoxColumn.cs
- PriorityBinding.cs
- TypefaceMap.cs
- Mapping.cs
- ValueType.cs
- PathSegmentCollection.cs
- ProgressBarBrushConverter.cs
- ContentWrapperAttribute.cs
- _NegotiateClient.cs
- MobileListItemCollection.cs
- Deflater.cs
- MemberHolder.cs
- RuntimeConfig.cs
- CornerRadius.cs
- Paragraph.cs
- WindowsTreeView.cs
- EncoderParameters.cs
- Point3DCollectionConverter.cs
- CompilationRelaxations.cs
- DataGridCaption.cs
- MeshGeometry3D.cs
- OdbcStatementHandle.cs
- TabControl.cs
- BooleanAnimationBase.cs
- HttpHandlersSection.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- Constraint.cs
- WebBrowserNavigatingEventHandler.cs
- WebDescriptionAttribute.cs
- SchemaImporterExtensionElementCollection.cs
- TypeConverterValueSerializer.cs
- UITypeEditor.cs
- MobileUserControlDesigner.cs
- DataControlPagerLinkButton.cs
- HttpCapabilitiesBase.cs
- DurableInstanceProvider.cs
- RequestCachePolicy.cs
- RequestCacheValidator.cs
- DecimalFormatter.cs
- BamlWriter.cs
- XmlAttributeAttribute.cs
- UnsafeNativeMethodsCLR.cs
- QueryContinueDragEvent.cs
- TranslateTransform.cs
- WhitespaceRuleReader.cs
- BinaryFormatterWriter.cs
- UnmanagedMemoryStreamWrapper.cs
- TextReader.cs
- GridViewRow.cs
- KnownAssemblyEntry.cs
- EdmComplexTypeAttribute.cs
- Operators.cs
- ObjectDataSourceView.cs
- SqlWebEventProvider.cs
- DragEvent.cs
- DispatchOperationRuntime.cs
- DynamicDiscoSearcher.cs
- ConfigXmlSignificantWhitespace.cs
- LineGeometry.cs
- FtpWebResponse.cs
- LicFileLicenseProvider.cs
- CodeCastExpression.cs
- FormattedTextSymbols.cs
- HtmlInputFile.cs
- BindingEditor.xaml.cs
- InternalConfigRoot.cs
- InstanceDescriptor.cs
- Column.cs
- HttpModule.cs
- SecureEnvironment.cs
- FontNameEditor.cs
- ImageListUtils.cs
- Shape.cs
- EmptyStringExpandableObjectConverter.cs
- Brush.cs
- SQLResource.cs
- AttachedPropertyMethodSelector.cs
- RtfFormatStack.cs
- TraceContext.cs
- PTProvider.cs
- SqlMethods.cs
- DictionaryKeyPropertyAttribute.cs
- WebException.cs
- RoutedUICommand.cs
- TimelineClockCollection.cs
- TargetParameterCountException.cs
- DesignTimeVisibleAttribute.cs
- TabItem.cs
- LogAppendAsyncResult.cs
- SafeNativeMethods.cs
- WithStatement.cs