Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebParts / CatalogPart.cs / 1 / CatalogPart.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Security.Permissions; using System.Web.UI; ////// Provides default rendering and part selection UI /// [ Bindable(false), Designer("System.Web.UI.Design.WebControls.WebParts.CatalogPartDesigner, " + AssemblyRef.SystemDesign), ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class CatalogPart : Part { private WebPartManager _webPartManager; private CatalogZoneBase _zone; [ Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public string DisplayTitle { get { string displayTitle = Title; if (String.IsNullOrEmpty(displayTitle)) { displayTitle = SR.GetString(SR.Part_Untitled); } return displayTitle; } } protected WebPartManager WebPartManager { get { return _webPartManager; } } protected CatalogZoneBase Zone { get { return _zone; } } public abstract WebPartDescriptionCollection GetAvailableWebPartDescriptions(); [SecurityPermission(SecurityAction.Demand, Unrestricted = true)] protected override IDictionary GetDesignModeState() { IDictionary state = new HybridDictionary(1); state["Zone"] = Zone; return state; } public abstract WebPart GetWebPart(WebPartDescription description); protected internal override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (Zone == null) { throw new InvalidOperationException(SR.GetString(SR.CatalogPart_MustBeInZone, ID)); } } [SecurityPermission(SecurityAction.Demand, Unrestricted = true)] protected override void SetDesignModeState(IDictionary data) { if (data != null) { object o = data["Zone"]; if (o != null) { SetZone((CatalogZoneBase)o); } } } internal void SetWebPartManager(WebPartManager webPartManager) { _webPartManager = webPartManager; } internal void SetZone(CatalogZoneBase zone) { _zone = zone; } } } // 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.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Security.Permissions; using System.Web.UI; ////// Provides default rendering and part selection UI /// [ Bindable(false), Designer("System.Web.UI.Design.WebControls.WebParts.CatalogPartDesigner, " + AssemblyRef.SystemDesign), ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class CatalogPart : Part { private WebPartManager _webPartManager; private CatalogZoneBase _zone; [ Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden) ] public string DisplayTitle { get { string displayTitle = Title; if (String.IsNullOrEmpty(displayTitle)) { displayTitle = SR.GetString(SR.Part_Untitled); } return displayTitle; } } protected WebPartManager WebPartManager { get { return _webPartManager; } } protected CatalogZoneBase Zone { get { return _zone; } } public abstract WebPartDescriptionCollection GetAvailableWebPartDescriptions(); [SecurityPermission(SecurityAction.Demand, Unrestricted = true)] protected override IDictionary GetDesignModeState() { IDictionary state = new HybridDictionary(1); state["Zone"] = Zone; return state; } public abstract WebPart GetWebPart(WebPartDescription description); protected internal override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (Zone == null) { throw new InvalidOperationException(SR.GetString(SR.CatalogPart_MustBeInZone, ID)); } } [SecurityPermission(SecurityAction.Demand, Unrestricted = true)] protected override void SetDesignModeState(IDictionary data) { if (data != null) { object o = data["Zone"]; if (o != null) { SetZone((CatalogZoneBase)o); } } } internal void SetWebPartManager(WebPartManager webPartManager) { _webPartManager = webPartManager; } internal void SetZone(CatalogZoneBase zone) { _zone = zone; } } } // 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
- RelationshipEndMember.cs
- ErrorFormatter.cs
- ProxyHelper.cs
- DataGridTableCollection.cs
- GeneralTransform2DTo3DTo2D.cs
- LogFlushAsyncResult.cs
- FullTextState.cs
- HandlerFactoryWrapper.cs
- JsonDeserializer.cs
- WebPartCollection.cs
- ExpressionBindings.cs
- VersionedStream.cs
- ImpersonationContext.cs
- XhtmlTextWriter.cs
- WizardPanelChangingEventArgs.cs
- ArrayTypeMismatchException.cs
- grammarelement.cs
- ObjectDataSource.cs
- PropertyReference.cs
- RegexNode.cs
- FunctionParameter.cs
- ResourcesGenerator.cs
- HttpRawResponse.cs
- XmlLanguageConverter.cs
- PrintPreviewControl.cs
- BitStack.cs
- ProtocolsConfiguration.cs
- ExceptionNotification.cs
- Drawing.cs
- ListView.cs
- SystemColorTracker.cs
- Shape.cs
- BatchParser.cs
- RealizationContext.cs
- CultureSpecificCharacterBufferRange.cs
- WinInet.cs
- ToolStripItemEventArgs.cs
- DataStreams.cs
- DrawToolTipEventArgs.cs
- SoundPlayerAction.cs
- DataRecordInternal.cs
- ListSurrogate.cs
- PenContexts.cs
- SupportedAddressingMode.cs
- SubtreeProcessor.cs
- ItemsPanelTemplate.cs
- TimeEnumHelper.cs
- FixedSOMFixedBlock.cs
- Size.cs
- BaseInfoTable.cs
- CommandConverter.cs
- MetadataItemCollectionFactory.cs
- DataControlButton.cs
- SchemaExporter.cs
- SID.cs
- BaseResourcesBuildProvider.cs
- SystemIPv6InterfaceProperties.cs
- Int16AnimationUsingKeyFrames.cs
- SqlDataSourceView.cs
- ItemCollection.cs
- BindingSource.cs
- TransformerTypeCollection.cs
- TabItemAutomationPeer.cs
- DurableInstanceManager.cs
- XmlNamespaceManager.cs
- TreeWalkHelper.cs
- MetadataPropertyAttribute.cs
- TransformPattern.cs
- XPathNavigatorKeyComparer.cs
- SafeRegistryKey.cs
- BuilderPropertyEntry.cs
- TreeNodeBindingCollection.cs
- XPathNavigatorReader.cs
- ShaderEffect.cs
- ZipIOCentralDirectoryFileHeader.cs
- TempFiles.cs
- MenuItemBindingCollection.cs
- DataGridViewTextBoxCell.cs
- SelectionListComponentEditor.cs
- MailBnfHelper.cs
- SelectingProviderEventArgs.cs
- Cursor.cs
- MILUtilities.cs
- ColorAnimationUsingKeyFrames.cs
- PersonalizationStateInfo.cs
- BamlResourceSerializer.cs
- CompiledQueryCacheKey.cs
- XPathSelfQuery.cs
- LineUtil.cs
- TextEditorTyping.cs
- DefaultIfEmptyQueryOperator.cs
- ButtonRenderer.cs
- ItemAutomationPeer.cs
- CollectionType.cs
- PolicyManager.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Column.cs
- IDispatchConstantAttribute.cs
- PersonalizableTypeEntry.cs
- AvtEvent.cs