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
- SoapIncludeAttribute.cs
- BamlResourceContent.cs
- TemplatePagerField.cs
- OutputWindow.cs
- InkCanvasSelectionAdorner.cs
- SQLConvert.cs
- Page.cs
- MimeObjectFactory.cs
- TypeUnloadedException.cs
- EtwTrace.cs
- MetadataFile.cs
- SystemIPAddressInformation.cs
- ConnectivityStatus.cs
- TypeElement.cs
- regiisutil.cs
- TypeSystem.cs
- ChangesetResponse.cs
- SystemTcpConnection.cs
- DbProviderFactories.cs
- EnumerableCollectionView.cs
- SoapReflectionImporter.cs
- DataTableReader.cs
- InstalledFontCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- BindingWorker.cs
- DataServiceEntityAttribute.cs
- SharedStatics.cs
- AxisAngleRotation3D.cs
- ConversionHelper.cs
- WebPartDescriptionCollection.cs
- RegisteredArrayDeclaration.cs
- KerberosTokenFactoryCredential.cs
- StrongBox.cs
- ScrollViewer.cs
- CodeBinaryOperatorExpression.cs
- AsymmetricCryptoHandle.cs
- DBPropSet.cs
- SchemaCollectionCompiler.cs
- EditorBrowsableAttribute.cs
- Wildcard.cs
- NumericUpDownAccelerationCollection.cs
- DataGridToolTip.cs
- LocalizationParserHooks.cs
- SqlDelegatedTransaction.cs
- ParallelTimeline.cs
- HTTPRemotingHandler.cs
- BulletedList.cs
- Debug.cs
- VectorCollectionConverter.cs
- ObjectDataSourceEventArgs.cs
- EntityContainerEmitter.cs
- QilInvokeLateBound.cs
- TrackBarDesigner.cs
- ConsoleKeyInfo.cs
- InvalidOleVariantTypeException.cs
- PolyQuadraticBezierSegment.cs
- RadioButtonRenderer.cs
- UnhandledExceptionEventArgs.cs
- PrintPageEvent.cs
- SecureUICommand.cs
- SafeMemoryMappedFileHandle.cs
- DataListItemCollection.cs
- Timer.cs
- ProfessionalColorTable.cs
- Viewport2DVisual3D.cs
- XamlSerializerUtil.cs
- OrderByQueryOptionExpression.cs
- CapabilitiesSection.cs
- BuildManager.cs
- RowUpdatedEventArgs.cs
- ColorMap.cs
- WSUtilitySpecificationVersion.cs
- DataRowView.cs
- ToolStripTemplateNode.cs
- GraphicsState.cs
- ProfilePropertyMetadata.cs
- UseAttributeSetsAction.cs
- DataGridViewTextBoxEditingControl.cs
- SchemeSettingElement.cs
- ArgumentException.cs
- PathStreamGeometryContext.cs
- SoapExtensionReflector.cs
- PageRanges.cs
- QuaternionRotation3D.cs
- WebPartManagerInternals.cs
- MailBnfHelper.cs
- EditingScopeUndoUnit.cs
- ScriptControl.cs
- XmlEncodedRawTextWriter.cs
- SqlCommand.cs
- GroupQuery.cs
- HotSpotCollection.cs
- MediaPlayerState.cs
- StringKeyFrameCollection.cs
- NullableLongAverageAggregationOperator.cs
- HttpHandlerActionCollection.cs
- SimpleTextLine.cs
- DropDownList.cs
- XmlDocumentFragment.cs
- VScrollProperties.cs