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
- Inflater.cs
- WebPartActionVerb.cs
- UpdateCommand.cs
- ExternalException.cs
- Pair.cs
- Stylesheet.cs
- DataSet.cs
- DependencyProperty.cs
- SinglePageViewer.cs
- RSAOAEPKeyExchangeFormatter.cs
- ObjectManager.cs
- SiteMapNodeCollection.cs
- EditingCommands.cs
- ComponentResourceKey.cs
- SerializationInfo.cs
- QueryContinueDragEvent.cs
- VerticalAlignConverter.cs
- hresults.cs
- SystemIPv6InterfaceProperties.cs
- HtmlTableCellCollection.cs
- DesignerActionUIService.cs
- QuestionEventArgs.cs
- AspNetHostingPermission.cs
- OperationCanceledException.cs
- TableItemPatternIdentifiers.cs
- SqlRecordBuffer.cs
- ComboBoxRenderer.cs
- WebPartConnection.cs
- wgx_sdk_version.cs
- returneventsaver.cs
- WpfPayload.cs
- ContentDisposition.cs
- ExpandedWrapper.cs
- EventPrivateKey.cs
- Resources.Designer.cs
- OleDbPermission.cs
- SqlProviderServices.cs
- PersonalizationState.cs
- DetailsViewActionList.cs
- HttpRuntimeSection.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- PositiveTimeSpanValidator.cs
- DataStreamFromComStream.cs
- MetafileHeaderWmf.cs
- InkPresenterAutomationPeer.cs
- XmlException.cs
- RedirectionProxy.cs
- PeerApplication.cs
- HandleTable.cs
- DataControlFieldCollection.cs
- HtmlHead.cs
- WindowsScrollBar.cs
- MultiBindingExpression.cs
- WebPartDisplayMode.cs
- ListView.cs
- DataGridCommandEventArgs.cs
- BinaryMethodMessage.cs
- ToolZoneDesigner.cs
- MobileResource.cs
- ServiceBuildProvider.cs
- CriticalHandle.cs
- XslAstAnalyzer.cs
- DataSetSchema.cs
- FloatUtil.cs
- ScriptingProfileServiceSection.cs
- MethodCallExpression.cs
- StreamReader.cs
- PrintController.cs
- GridViewRowPresenterBase.cs
- EntityDataSourceState.cs
- DetailsViewDeleteEventArgs.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- EmbeddedMailObject.cs
- XmlEntity.cs
- FormsAuthenticationUserCollection.cs
- HideDisabledControlAdapter.cs
- ToolStripItemEventArgs.cs
- safelink.cs
- TemplateBindingExpressionConverter.cs
- CodeTypeDelegate.cs
- DeviceContexts.cs
- ListControl.cs
- DataControlLinkButton.cs
- Enum.cs
- IntPtr.cs
- DispatcherHooks.cs
- SecurityKeyUsage.cs
- RootBrowserWindowAutomationPeer.cs
- PassportAuthentication.cs
- Crc32.cs
- MarkupExtensionParser.cs
- StaticExtension.cs
- StreamGeometry.cs
- DatePickerTextBox.cs
- PDBReader.cs
- TextBoxRenderer.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XamlFigureLengthSerializer.cs
- EventProviderClassic.cs
- CultureSpecificStringDictionary.cs