Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / CatalogPart.cs / 1305376 / 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), ] 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
- StateManagedCollection.cs
- CheckBoxAutomationPeer.cs
- ClassHandlersStore.cs
- SmiEventSink.cs
- TransformerInfoCollection.cs
- _LocalDataStoreMgr.cs
- FilterQueryOptionExpression.cs
- UnaryNode.cs
- PerCallInstanceContextProvider.cs
- CubicEase.cs
- Label.cs
- HttpApplicationFactory.cs
- TextSpanModifier.cs
- ErrorItem.cs
- RepeatButtonAutomationPeer.cs
- IconHelper.cs
- BinaryObjectReader.cs
- FontFamilyValueSerializer.cs
- DeviceSpecificChoice.cs
- PopupEventArgs.cs
- ThicknessConverter.cs
- System.Data_BID.cs
- SqlDependencyListener.cs
- EntityDataSourceDesignerHelper.cs
- DbSetClause.cs
- SafeNativeMethods.cs
- AdjustableArrowCap.cs
- XmlIterators.cs
- ToolBarOverflowPanel.cs
- AutomationInteropProvider.cs
- TableItemProviderWrapper.cs
- ConfigUtil.cs
- KeyboardEventArgs.cs
- SmiEventSink.cs
- ReturnValue.cs
- DataRowExtensions.cs
- TransactionChannelFaultConverter.cs
- SharedConnectionListener.cs
- DocobjHost.cs
- OracleTransaction.cs
- PenContext.cs
- ImageMapEventArgs.cs
- TypeUtils.cs
- QualifiedCellIdBoolean.cs
- HttpCapabilitiesSectionHandler.cs
- OleDbSchemaGuid.cs
- WindowsAltTab.cs
- Stacktrace.cs
- CollectionsUtil.cs
- HierarchicalDataSourceConverter.cs
- NetworkInterface.cs
- NavigationWindowAutomationPeer.cs
- XmlCharCheckingReader.cs
- ErrorWrapper.cs
- PopOutPanel.cs
- codemethodreferenceexpression.cs
- DoubleLink.cs
- TypeConverterValueSerializer.cs
- OleDbInfoMessageEvent.cs
- WebPartConnectVerb.cs
- BamlResourceSerializer.cs
- MimeXmlImporter.cs
- DisplayInformation.cs
- BoolExpressionVisitors.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CodeMemberField.cs
- SkinBuilder.cs
- BufferAllocator.cs
- UnauthorizedWebPart.cs
- ToolBarButtonClickEvent.cs
- CompositeFontParser.cs
- HtmlInputReset.cs
- DesignerCommandAdapter.cs
- EventDescriptor.cs
- xmlsaver.cs
- GuidConverter.cs
- coordinatorscratchpad.cs
- XmlHierarchicalEnumerable.cs
- PeerResolverSettings.cs
- SignalGate.cs
- BaseAddressElement.cs
- SqlNotificationRequest.cs
- AtomMaterializer.cs
- LocationSectionRecord.cs
- RoutingService.cs
- NameTable.cs
- DnsPermission.cs
- Registry.cs
- ByteAnimationBase.cs
- WebPartVerbsEventArgs.cs
- ConditionalAttribute.cs
- FragmentNavigationEventArgs.cs
- InternalCache.cs
- Endpoint.cs
- GridViewColumn.cs
- AmbientLight.cs
- XPathLexer.cs
- AssemblyInfo.cs
- MailMessage.cs
- PropertyDescriptorComparer.cs