Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationState.cs / 1 / PersonalizationState.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; using System.Web; using System.Web.Util; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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.Security.Permissions; using System.Web; using System.Web.Util; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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
- MarkupCompiler.cs
- SelectionEditingBehavior.cs
- ProcessHostFactoryHelper.cs
- UxThemeWrapper.cs
- AsyncOperationManager.cs
- sqlnorm.cs
- JournalEntryListConverter.cs
- AffineTransform3D.cs
- FileChangesMonitor.cs
- WorkflowMessageEventHandler.cs
- FaultDesigner.cs
- TextAction.cs
- ExtensionQuery.cs
- Attributes.cs
- EntityViewGenerator.cs
- LinqDataSourceUpdateEventArgs.cs
- HierarchicalDataSourceControl.cs
- SelectionChangedEventArgs.cs
- WebFormsRootDesigner.cs
- TimeSpanOrInfiniteValidator.cs
- StatusBarItem.cs
- SrgsItemList.cs
- TypeBuilder.cs
- ValidateNames.cs
- XPathSelfQuery.cs
- FrameworkElement.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- CanExecuteRoutedEventArgs.cs
- DataGridViewIntLinkedList.cs
- Registry.cs
- Cursor.cs
- MemoryStream.cs
- RadioButton.cs
- DescriptionAttribute.cs
- Vector3DAnimationUsingKeyFrames.cs
- ValidatorCollection.cs
- XmlSerializationGeneratedCode.cs
- CaseInsensitiveComparer.cs
- UnsafeNativeMethodsPenimc.cs
- MonthCalendarDesigner.cs
- Line.cs
- OAVariantLib.cs
- Size.cs
- NativeMethodsOther.cs
- FormClosingEvent.cs
- DynamicQueryableWrapper.cs
- ResourcesChangeInfo.cs
- QueryResponse.cs
- EventLogEntry.cs
- CollectionType.cs
- SmiRequestExecutor.cs
- SmiEventSink.cs
- XmlBoundElement.cs
- IdentifierService.cs
- FrugalMap.cs
- EndpointAddressMessageFilter.cs
- StylusPointPropertyInfo.cs
- MetadataArtifactLoaderCompositeResource.cs
- XhtmlBasicTextBoxAdapter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ChannelTokenTypeConverter.cs
- Sequence.cs
- WorkflowPersistenceService.cs
- StorageComplexTypeMapping.cs
- ImageSource.cs
- ReferencedType.cs
- LoginUtil.cs
- ToolboxItemCollection.cs
- CompoundFileStorageReference.cs
- WindowsClaimSet.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MetabaseServerConfig.cs
- XpsFilter.cs
- SingleObjectCollection.cs
- FormatSettings.cs
- XmlArrayItemAttributes.cs
- UTF32Encoding.cs
- TraceSwitch.cs
- _RequestCacheProtocol.cs
- __Error.cs
- CharacterBuffer.cs
- InteropExecutor.cs
- TextRangeEditLists.cs
- CommandBindingCollection.cs
- PeerNearMe.cs
- TextRangeEditTables.cs
- VectorAnimationBase.cs
- SignatureSummaryDialog.cs
- ADMembershipProvider.cs
- TextShapeableCharacters.cs
- GroupBoxRenderer.cs
- LoginCancelEventArgs.cs
- TextRangeEditLists.cs
- X500Name.cs
- AdPostCacheSubstitution.cs
- _ProxyChain.cs
- RectangleGeometry.cs
- HtmlForm.cs
- PermissionAttributes.cs