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
- SQLResource.cs
- Adorner.cs
- ArrayElementGridEntry.cs
- StyleSelector.cs
- UserControl.cs
- ModifierKeysConverter.cs
- Compiler.cs
- _TransmitFileOverlappedAsyncResult.cs
- CodeTypeParameterCollection.cs
- CustomErrorsSectionWrapper.cs
- HighlightVisual.cs
- AssertSection.cs
- ManifestResourceInfo.cs
- CompilerGeneratedAttribute.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- precedingsibling.cs
- LocalizabilityAttribute.cs
- HtmlWindowCollection.cs
- DocobjHost.cs
- StrongNamePublicKeyBlob.cs
- Control.cs
- ValidationErrorCollection.cs
- WebEventTraceProvider.cs
- WorkerRequest.cs
- ScrollChrome.cs
- WindowsPrincipal.cs
- DrawingContext.cs
- TimeIntervalCollection.cs
- VirtualPath.cs
- SrgsElementFactory.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- TraceXPathNavigator.cs
- SrgsItemList.cs
- XmlSchemaSimpleContentExtension.cs
- DirectionalAction.cs
- SpotLight.cs
- RectAnimationBase.cs
- SafeNativeMethodsOther.cs
- FileDialog_Vista_Interop.cs
- UniqueContractNameValidationBehavior.cs
- RtfNavigator.cs
- EntityDataSourceContextDisposingEventArgs.cs
- StructuralCache.cs
- SqlCacheDependencyDatabaseCollection.cs
- PathStreamGeometryContext.cs
- InputScopeAttribute.cs
- ToolboxSnapDragDropEventArgs.cs
- Stroke.cs
- MatrixTransform.cs
- GeneratedCodeAttribute.cs
- ListItemCollection.cs
- ADConnectionHelper.cs
- NavigationProperty.cs
- BezierSegment.cs
- QuinticEase.cs
- GridView.cs
- MetabaseServerConfig.cs
- Graph.cs
- CommandDesigner.cs
- Point.cs
- XPathDocumentBuilder.cs
- Composition.cs
- _NetRes.cs
- DefaultSerializationProviderAttribute.cs
- Root.cs
- ObjectStateFormatter.cs
- MessageVersionConverter.cs
- EdmProviderManifest.cs
- ConstrainedGroup.cs
- SafeHandle.cs
- MulticastIPAddressInformationCollection.cs
- InteropAutomationProvider.cs
- WebBodyFormatMessageProperty.cs
- StrokeCollection2.cs
- TableItemStyle.cs
- ReferencedType.cs
- GeneralTransformGroup.cs
- PropertyValueUIItem.cs
- CopyOnWriteList.cs
- LookupNode.cs
- StringBuilder.cs
- MulticastNotSupportedException.cs
- PageAsyncTask.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DodSequenceMerge.cs
- InternalEnumValidatorAttribute.cs
- _PooledStream.cs
- CompiledELinqQueryState.cs
- ElementNotAvailableException.cs
- QueryableDataSourceView.cs
- OdbcRowUpdatingEvent.cs
- thaishape.cs
- OleDbMetaDataFactory.cs
- WebControlsSection.cs
- XamlValidatingReader.cs
- DescendantBaseQuery.cs
- TemplateAction.cs
- NetWebProxyFinder.cs
- Attribute.cs
- SynchronizedRandom.cs