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
- WithStatement.cs
- AudioStateChangedEventArgs.cs
- StrokeCollectionDefaultValueFactory.cs
- TextEffectResolver.cs
- WindowsPen.cs
- EnumerableRowCollectionExtensions.cs
- FilteredReadOnlyMetadataCollection.cs
- WebResourceUtil.cs
- SQLMoneyStorage.cs
- MemberDescriptor.cs
- ConfigurationConverterBase.cs
- PermissionSetEnumerator.cs
- DataMemberFieldEditor.cs
- TextRangeProviderWrapper.cs
- PassportAuthenticationEventArgs.cs
- NavigationProperty.cs
- IISMapPath.cs
- AspNetRouteServiceHttpHandler.cs
- UnhandledExceptionEventArgs.cs
- RootBrowserWindowAutomationPeer.cs
- WorkflowMarkupSerializationManager.cs
- OdbcEnvironment.cs
- DeflateStream.cs
- EndpointBehaviorElementCollection.cs
- UnsafeNativeMethods.cs
- WebService.cs
- FullTextLine.cs
- ObjectSecurity.cs
- SyndicationFeed.cs
- Propagator.ExtentPlaceholderCreator.cs
- Rotation3DAnimation.cs
- Stroke.cs
- DependencyObject.cs
- ListViewCommandEventArgs.cs
- TCPClient.cs
- KerberosRequestorSecurityToken.cs
- PathSegmentCollection.cs
- ValidationPropertyAttribute.cs
- XmlSchemaException.cs
- AlignmentYValidation.cs
- PublisherMembershipCondition.cs
- HebrewCalendar.cs
- DataGridSortCommandEventArgs.cs
- SQLBytesStorage.cs
- LayeredChannelListener.cs
- WebConfigurationFileMap.cs
- SmtpReplyReaderFactory.cs
- PartialTrustHelpers.cs
- GroupItemAutomationPeer.cs
- SafePEFileHandle.cs
- Currency.cs
- SqlEnums.cs
- TextServicesProperty.cs
- AdapterSwitches.cs
- OpCopier.cs
- SvcMapFile.cs
- ComponentChangedEvent.cs
- CachedFontFamily.cs
- ColorAnimation.cs
- TypedDataSourceCodeGenerator.cs
- TimeStampChecker.cs
- RepeatButtonAutomationPeer.cs
- ResourceDefaultValueAttribute.cs
- SecurityHelper.cs
- StagingAreaInputItem.cs
- PolyLineSegmentFigureLogic.cs
- CookieHandler.cs
- RelatedView.cs
- SqlDataSourceView.cs
- IISMapPath.cs
- StatusBarPanelClickEvent.cs
- Variable.cs
- XmlIgnoreAttribute.cs
- ListViewSortEventArgs.cs
- RenderData.cs
- TraceHandlerErrorFormatter.cs
- IPGlobalProperties.cs
- GestureRecognitionResult.cs
- CheckStoreFileValidityRequest.cs
- _LocalDataStore.cs
- DataGridHelper.cs
- arclist.cs
- HitTestParameters.cs
- ToolboxItemCollection.cs
- WebPartCatalogAddVerb.cs
- RijndaelManaged.cs
- NetworkStream.cs
- EdmProperty.cs
- DataContractAttribute.cs
- TextTrailingWordEllipsis.cs
- AsyncContentLoadedEventArgs.cs
- XPathAncestorQuery.cs
- DataRowView.cs
- OperationContext.cs
- RC2CryptoServiceProvider.cs
- LinqExpressionNormalizer.cs
- RowType.cs
- AbandonedMutexException.cs
- WebPartDisplayModeCollection.cs
- ChtmlPhoneCallAdapter.cs