Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FontStretch.cs
- X509WindowsSecurityToken.cs
- FilterException.cs
- WindowsScroll.cs
- Rotation3DAnimation.cs
- HwndKeyboardInputProvider.cs
- TextBox.cs
- UnmanagedMemoryAccessor.cs
- Panel.cs
- HtmlButton.cs
- ProviderCollection.cs
- FileAuthorizationModule.cs
- Rotation3D.cs
- DragEventArgs.cs
- BoundField.cs
- SafeNativeMethods.cs
- CollectionDataContractAttribute.cs
- XamlReaderHelper.cs
- ScrollChangedEventArgs.cs
- EntityDataSourceDataSelection.cs
- TimeSpan.cs
- BooleanAnimationUsingKeyFrames.cs
- HttpCookiesSection.cs
- RequestTimeoutManager.cs
- SamlDoNotCacheCondition.cs
- DbParameterCollectionHelper.cs
- SizeConverter.cs
- ToolStripControlHost.cs
- WebPartCloseVerb.cs
- CharEntityEncoderFallback.cs
- ComplexPropertyEntry.cs
- DesignerLoader.cs
- HttpWebRequestElement.cs
- KnownBoxes.cs
- DeferredElementTreeState.cs
- ItemCollection.cs
- BooleanConverter.cs
- LogSwitch.cs
- PersianCalendar.cs
- WebReferencesBuildProvider.cs
- ThreadStateException.cs
- ListItemCollection.cs
- RelationshipConverter.cs
- Source.cs
- _KerberosClient.cs
- StatusBar.cs
- codemethodreferenceexpression.cs
- arclist.cs
- ErrorLog.cs
- NamespaceInfo.cs
- SelectorItemAutomationPeer.cs
- EntityConnectionStringBuilderItem.cs
- mediaeventargs.cs
- NominalTypeEliminator.cs
- StreamWriter.cs
- __ComObject.cs
- EventSinkActivity.cs
- Permission.cs
- CachingHintValidation.cs
- DataObjectAttribute.cs
- SafeNativeHandle.cs
- DesignerExtenders.cs
- InputLanguageCollection.cs
- FatalException.cs
- SslStream.cs
- Section.cs
- RectKeyFrameCollection.cs
- TrustLevelCollection.cs
- MenuScrollingVisibilityConverter.cs
- DesignerAdRotatorAdapter.cs
- SqlDuplicator.cs
- DataControlFieldHeaderCell.cs
- InputMethod.cs
- TextInfo.cs
- DataMemberListEditor.cs
- FixedHyperLink.cs
- FileDialogPermission.cs
- NamedPipeActivation.cs
- PagedDataSource.cs
- ServiceHost.cs
- ProcessRequestArgs.cs
- ChannelBinding.cs
- PointF.cs
- MatrixCamera.cs
- ProxyAssemblyNotLoadedException.cs
- Utils.cs
- ProcessHost.cs
- BitmapFrameDecode.cs
- DataTableClearEvent.cs
- GlobalEventManager.cs
- XPathCompileException.cs
- Visual3D.cs
- sqlcontext.cs
- WindowsListViewItemStartMenu.cs
- Thread.cs
- MDIControlStrip.cs
- CallbackDebugBehavior.cs
- InvokePattern.cs
- TaskSchedulerException.cs
- RC2.cs