Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / CatalogPart.cs / 1305376 / 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), ] 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
- XmlSchemaCompilationSettings.cs
- ComplexType.cs
- DetailsViewModeEventArgs.cs
- EventLogPermissionEntryCollection.cs
- SortAction.cs
- MsmqHostedTransportConfiguration.cs
- SafeRightsManagementQueryHandle.cs
- Enum.cs
- CodeDirectoryCompiler.cs
- VectorAnimationBase.cs
- DynamicScriptObject.cs
- EncoderNLS.cs
- HelloMessageCD1.cs
- Win32NamedPipes.cs
- MsmqProcessProtocolHandler.cs
- ServiceNotStartedException.cs
- QilDataSource.cs
- RectangleHotSpot.cs
- HttpCookie.cs
- TripleDES.cs
- IsolatedStorageFile.cs
- SafePEFileHandle.cs
- ControlCachePolicy.cs
- ValueQuery.cs
- LinearKeyFrames.cs
- TypeExtensions.cs
- SequentialUshortCollection.cs
- FixUp.cs
- IntegerValidatorAttribute.cs
- ToolStripRenderer.cs
- SpinWait.cs
- PrintDialogException.cs
- DecoderExceptionFallback.cs
- InfoCardConstants.cs
- WhitespaceSignificantCollectionAttribute.cs
- PrimitiveDataContract.cs
- SynthesizerStateChangedEventArgs.cs
- DelegatingConfigHost.cs
- MDIClient.cs
- SupportsEventValidationAttribute.cs
- ToolStripProgressBar.cs
- Encoder.cs
- StoreAnnotationsMap.cs
- SystemTcpConnection.cs
- SqlDataSourceCustomCommandEditor.cs
- ObjectDataSourceMethodEventArgs.cs
- TextModifierScope.cs
- BufferAllocator.cs
- DeviceContexts.cs
- DirtyTextRange.cs
- CodeDelegateInvokeExpression.cs
- StringFormat.cs
- UIPermission.cs
- DataServiceQuery.cs
- FolderBrowserDialog.cs
- ToolboxItemSnapLineBehavior.cs
- FixedPageStructure.cs
- SqlTypeSystemProvider.cs
- ScriptResourceAttribute.cs
- Marshal.cs
- EntityClassGenerator.cs
- LogPolicy.cs
- ResourceType.cs
- XsdDataContractImporter.cs
- DeviceSpecificDialogCachedState.cs
- TitleStyle.cs
- StopStoryboard.cs
- RuntimeTransactionHandle.cs
- XmlDataSourceDesigner.cs
- DataBindingCollection.cs
- METAHEADER.cs
- RepeatBehavior.cs
- NotFiniteNumberException.cs
- ActiveDesignSurfaceEvent.cs
- TdsParserSafeHandles.cs
- SoapEnvelopeProcessingElement.cs
- ThicknessAnimation.cs
- SerialPinChanges.cs
- Group.cs
- SHA256Managed.cs
- DataStreamFromComStream.cs
- TextReader.cs
- BrowserInteropHelper.cs
- ReflectionServiceProvider.cs
- WinFormsComponentEditor.cs
- RoleGroupCollection.cs
- Bezier.cs
- FocusManager.cs
- CachedResourceDictionaryExtension.cs
- ActivityValidator.cs
- ProgressBarAutomationPeer.cs
- IDReferencePropertyAttribute.cs
- FlowLayoutSettings.cs
- HighlightVisual.cs
- AuthenticationService.cs
- Stopwatch.cs
- SecureUICommand.cs
- MatrixAnimationBase.cs
- BehaviorEditorPart.cs
- Authorization.cs