Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDescription.cs / 1305376 / WebPartDescription.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; public class WebPartDescription { private string _id; private string _title; private string _description; private string _imageUrl; private WebPart _part; private WebPartDescription() { } public WebPartDescription(string id, string title, string description, string imageUrl) { if (String.IsNullOrEmpty(id)) { throw new ArgumentNullException("id"); } if (String.IsNullOrEmpty(title)) { throw new ArgumentNullException("title"); } _id = id; _title = title; _description = (description != null) ? description : String.Empty; _imageUrl = (imageUrl != null) ? imageUrl : String.Empty; } public WebPartDescription(WebPart part) { string id = part.ID; if (String.IsNullOrEmpty(id)) { throw new ArgumentException(SR.GetString(SR.WebPartManager_NoWebPartID), "part"); } _id = id; string displayTitle = part.DisplayTitle; _title = (displayTitle != null) ? displayTitle : String.Empty; string description = part.Description; _description = (description != null) ? description : String.Empty; string imageUrl = part.CatalogIconImageUrl; _imageUrl = (imageUrl != null) ? imageUrl : String.Empty; _part = part; } public string CatalogIconImageUrl { get { return _imageUrl; } } public string Description { get { return _description; } } public string ID { get { return _id; } } public string Title { get { return _title; } } internal WebPart WebPart { get { return _part; } } } } // 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
- EnvironmentPermission.cs
- odbcmetadatafactory.cs
- WebBrowserContainer.cs
- BuilderPropertyEntry.cs
- SqlDataSourceCache.cs
- UntypedNullExpression.cs
- CharacterMetrics.cs
- PolicyManager.cs
- ObjectDataSourceSelectingEventArgs.cs
- WindowsStatic.cs
- _HTTPDateParse.cs
- DragDeltaEventArgs.cs
- Vector3DAnimationBase.cs
- DefaultTraceListener.cs
- DatatypeImplementation.cs
- WebPartEditorOkVerb.cs
- ListComponentEditor.cs
- DateTimeConstantAttribute.cs
- HostProtectionPermission.cs
- NullableDoubleSumAggregationOperator.cs
- WebPartCloseVerb.cs
- Repeater.cs
- PackWebResponse.cs
- NetworkInterface.cs
- ToolStripPanelRenderEventArgs.cs
- AnnotationComponentManager.cs
- util.cs
- TableColumn.cs
- CounterSetInstanceCounterDataSet.cs
- panel.cs
- _NetRes.cs
- ThreadStartException.cs
- AuthenticatedStream.cs
- COSERVERINFO.cs
- TripleDES.cs
- DataKeyArray.cs
- WindowsListViewGroupHelper.cs
- PopOutPanel.cs
- DataSourceCacheDurationConverter.cs
- ConfigurationPropertyAttribute.cs
- BmpBitmapEncoder.cs
- FilterException.cs
- TextDocumentView.cs
- Membership.cs
- Decoder.cs
- OutputChannelBinder.cs
- RealizationDrawingContextWalker.cs
- UpdateEventArgs.cs
- DataColumnMapping.cs
- MemoryStream.cs
- ToolstripProfessionalRenderer.cs
- CallbackCorrelationInitializer.cs
- ListBindingConverter.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- WCFBuildProvider.cs
- ButtonFieldBase.cs
- BinaryConverter.cs
- EntityContainerEmitter.cs
- ColumnWidthChangingEvent.cs
- PanelStyle.cs
- ParsedAttributeCollection.cs
- LinearQuaternionKeyFrame.cs
- WindowsAltTab.cs
- ProgressChangedEventArgs.cs
- ResXFileRef.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- ThreadAttributes.cs
- TraceSection.cs
- SqlDeflator.cs
- ResourceReferenceKeyNotFoundException.cs
- TabItemWrapperAutomationPeer.cs
- ComponentTray.cs
- AbsoluteQuery.cs
- SkinBuilder.cs
- OdbcErrorCollection.cs
- ToolStripSplitStackLayout.cs
- NonParentingControl.cs
- CompositeTypefaceMetrics.cs
- SerializationInfoEnumerator.cs
- ProcessThreadDesigner.cs
- StringPropertyBuilder.cs
- BaseComponentEditor.cs
- FullTextBreakpoint.cs
- VSWCFServiceContractGenerator.cs
- FixedSOMTable.cs
- IfJoinedCondition.cs
- AtomServiceDocumentSerializer.cs
- DecoderExceptionFallback.cs
- FileDetails.cs
- Root.cs
- NamespaceTable.cs
- OleAutBinder.cs
- ChildrenQuery.cs
- Style.cs
- ConfigXmlSignificantWhitespace.cs
- SessionParameter.cs
- EntityContainer.cs
- DashStyle.cs
- SerTrace.cs
- XDeferredAxisSource.cs