Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Point4DConverter.cs
- RouteItem.cs
- CharacterHit.cs
- CompoundFileStorageReference.cs
- TextFormatterImp.cs
- SqlMetaData.cs
- SeparatorAutomationPeer.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- TableLayoutPanelCellPosition.cs
- GraphicsPathIterator.cs
- DefaultHttpHandler.cs
- MediaTimeline.cs
- webbrowsersite.cs
- Line.cs
- XsdBuilder.cs
- DataSourceCache.cs
- DecoderBestFitFallback.cs
- DataGridViewDataErrorEventArgs.cs
- CachedCompositeFamily.cs
- MimeTypePropertyAttribute.cs
- Base64Decoder.cs
- BindingParameterCollection.cs
- MissingMemberException.cs
- GradientStopCollection.cs
- SurrogateEncoder.cs
- HeaderedContentControl.cs
- UrlRoutingHandler.cs
- PropertyGrid.cs
- RtfNavigator.cs
- SafeEventLogWriteHandle.cs
- ProtectedProviderSettings.cs
- ObjectTag.cs
- CodeDelegateInvokeExpression.cs
- WebPartDisplayMode.cs
- CallbackHandler.cs
- XmlSchemaDocumentation.cs
- PrintSystemException.cs
- NamedPipeTransportElement.cs
- WizardPanelChangingEventArgs.cs
- DataSourceCacheDurationConverter.cs
- TextDecorationLocationValidation.cs
- GridViewEditEventArgs.cs
- ToolStripManager.cs
- MultiPartWriter.cs
- UnknownBitmapDecoder.cs
- XmlnsPrefixAttribute.cs
- Listbox.cs
- LineSegment.cs
- SessionIDManager.cs
- XPathDocumentNavigator.cs
- InheritanceContextChangedEventManager.cs
- ValidationPropertyAttribute.cs
- InkCanvas.cs
- CacheVirtualItemsEvent.cs
- MsmqInputSessionChannelListener.cs
- PackWebRequest.cs
- Site.cs
- QilXmlWriter.cs
- StringComparer.cs
- MouseEvent.cs
- __Filters.cs
- LeaseManager.cs
- FileResponseElement.cs
- DeleteWorkflowOwnerCommand.cs
- HtmlInputCheckBox.cs
- DataGrid.cs
- LogFlushAsyncResult.cs
- GeometryModel3D.cs
- PrePrepareMethodAttribute.cs
- AliasedSlot.cs
- StyleModeStack.cs
- TextElement.cs
- ProfileService.cs
- HtmlInputPassword.cs
- XmlSchemaDocumentation.cs
- RootNamespaceAttribute.cs
- RequiredArgumentAttribute.cs
- ValuePattern.cs
- UnaryNode.cs
- WebBrowserEvent.cs
- BamlLocalizabilityResolver.cs
- DragCompletedEventArgs.cs
- _ContextAwareResult.cs
- StreamGeometry.cs
- LinkClickEvent.cs
- TreeNodeBinding.cs
- LinqDataSourceValidationException.cs
- ManagementException.cs
- ExpressionPrefixAttribute.cs
- ApplicationDirectory.cs
- ObjectContextServiceProvider.cs
- RIPEMD160.cs
- SiteMapHierarchicalDataSourceView.cs
- SessionStateSection.cs
- FacetDescription.cs
- TheQuery.cs
- SelectionRangeConverter.cs
- InputLangChangeRequestEvent.cs
- WindowsGraphics.cs
- InstalledVoice.cs