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
- DisplayNameAttribute.cs
- Converter.cs
- RedirectionProxy.cs
- XmlAttributeCollection.cs
- JournalEntryStack.cs
- EventSetterHandlerConverter.cs
- DataSourceBooleanViewSchemaConverter.cs
- DataGridViewRowEventArgs.cs
- DataConnectionHelper.cs
- XmlSignificantWhitespace.cs
- DocumentationServerProtocol.cs
- TableChangeProcessor.cs
- WorkflowMarkupSerializer.cs
- StoryFragments.cs
- SelectionGlyphBase.cs
- FormsAuthentication.cs
- XhtmlConformanceSection.cs
- ToolStripItemRenderEventArgs.cs
- Gdiplus.cs
- ApplicationActivator.cs
- Bidi.cs
- HotSpotCollectionEditor.cs
- ConfigXmlReader.cs
- AnnotationService.cs
- DifferencingCollection.cs
- Fonts.cs
- DesignerLoader.cs
- HttpModule.cs
- SharingService.cs
- SqlNode.cs
- ConfigurationLocation.cs
- XamlTreeBuilder.cs
- IsolatedStorageFile.cs
- Compiler.cs
- Hashtable.cs
- WizardPanel.cs
- METAHEADER.cs
- BeginStoryboard.cs
- ChangeNode.cs
- ManifestSignatureInformation.cs
- HandlerFactoryWrapper.cs
- ThaiBuddhistCalendar.cs
- BitmapMetadataEnumerator.cs
- WindowsGraphics2.cs
- SlipBehavior.cs
- Block.cs
- DataException.cs
- CursorInteropHelper.cs
- AssociatedControlConverter.cs
- CodeIndexerExpression.cs
- InputMethodStateTypeInfo.cs
- UrlPath.cs
- ThemeableAttribute.cs
- TableLayoutSettingsTypeConverter.cs
- Rect3D.cs
- ProfilePropertySettings.cs
- StyleModeStack.cs
- ListViewDeleteEventArgs.cs
- PointF.cs
- XmlDataContract.cs
- MimeMultiPart.cs
- Trace.cs
- SEHException.cs
- BinHexDecoder.cs
- RouteTable.cs
- PersonalizationState.cs
- NamespaceListProperty.cs
- XamlStyleSerializer.cs
- EventListenerClientSide.cs
- sqlmetadatafactory.cs
- EmbeddedObject.cs
- HtmlTableRowCollection.cs
- SafeProcessHandle.cs
- OpenFileDialog.cs
- _Rfc2616CacheValidators.cs
- util.cs
- EdmItemCollection.cs
- x509store.cs
- HttpResponseMessageProperty.cs
- DataGridViewElement.cs
- ReflectPropertyDescriptor.cs
- DetailsViewUpdatedEventArgs.cs
- SizeChangedInfo.cs
- RelationshipEnd.cs
- ObjectListCommandCollection.cs
- EditorZoneAutoFormat.cs
- XmlSerializableReader.cs
- Screen.cs
- ProviderException.cs
- CSharpCodeProvider.cs
- HttpCookiesSection.cs
- BaseValidator.cs
- Cursors.cs
- CheckBoxField.cs
- WebPartDescriptionCollection.cs
- StandardOleMarshalObject.cs
- TemplateColumn.cs
- XmlSchemaAnyAttribute.cs
- CompilationUtil.cs
- ExpressionNormalizer.cs