Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindableAttribute.cs
- DesignerVerbCollection.cs
- DataGridColumnCollection.cs
- NoneExcludedImageIndexConverter.cs
- InternalCache.cs
- ZipPackage.cs
- BaseUriHelper.cs
- RegexWriter.cs
- RuntimeResourceSet.cs
- UpdateProgress.cs
- OleDbErrorCollection.cs
- ObjectSet.cs
- ClientBuildManager.cs
- SecurityTokenResolver.cs
- SmtpFailedRecipientsException.cs
- WebPartChrome.cs
- SqlClientWrapperSmiStream.cs
- EventLogPermissionAttribute.cs
- TextRangeAdaptor.cs
- RedirectionProxy.cs
- DataViewSettingCollection.cs
- ListCollectionView.cs
- XmlSchemaDocumentation.cs
- InternalRelationshipCollection.cs
- ObjectDataSourceEventArgs.cs
- AnnotationHighlightLayer.cs
- StateManagedCollection.cs
- RelatedPropertyManager.cs
- DataFormats.cs
- ContainerParagraph.cs
- UIPermission.cs
- FontNameConverter.cs
- BinaryMethodMessage.cs
- ToolStripItemRenderEventArgs.cs
- CodeLabeledStatement.cs
- MouseCaptureWithinProperty.cs
- MemberAccessException.cs
- QilInvoke.cs
- FixedHyperLink.cs
- XmlEventCache.cs
- BrowserCapabilitiesFactory.cs
- SchemaCollectionCompiler.cs
- DataSourceXmlSerializationAttribute.cs
- ViewStateException.cs
- reliableinputsessionchannel.cs
- SpotLight.cs
- SizeFConverter.cs
- _ListenerAsyncResult.cs
- QueryOperationResponseOfT.cs
- _ChunkParse.cs
- PrimitiveSchema.cs
- activationcontext.cs
- MouseGestureConverter.cs
- JoinTreeNode.cs
- OdbcConnectionPoolProviderInfo.cs
- SecureConversationDriver.cs
- ResourceWriter.cs
- ThemeInfoAttribute.cs
- entitydatasourceentitysetnameconverter.cs
- ToolboxItem.cs
- XmlDictionaryReaderQuotas.cs
- PromptEventArgs.cs
- Timeline.cs
- CryptoStream.cs
- NestedContainer.cs
- ClipboardProcessor.cs
- CharConverter.cs
- ActivityXamlServices.cs
- CellCreator.cs
- MobileControlsSectionHelper.cs
- JournalEntryListConverter.cs
- CollectionsUtil.cs
- XmlReaderDelegator.cs
- DPTypeDescriptorContext.cs
- FrameworkObject.cs
- PersonalizablePropertyEntry.cs
- ExtensionFile.cs
- TraceUtils.cs
- NullRuntimeConfig.cs
- StringFunctions.cs
- ButtonRenderer.cs
- DataBindingCollection.cs
- CustomErrorCollection.cs
- GPPOINT.cs
- InstanceHandleReference.cs
- SerTrace.cs
- Content.cs
- InputLangChangeRequestEvent.cs
- StaticTextPointer.cs
- IItemContainerGenerator.cs
- GlobalItem.cs
- ExtendedProperty.cs
- ProbeDuplex11AsyncResult.cs
- Deserializer.cs
- CounterSample.cs
- ParameterBuilder.cs
- TdsParser.cs
- ArrayTypeMismatchException.cs
- State.cs
- TextRangeProviderWrapper.cs