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
- CookieHandler.cs
- MulticastDelegate.cs
- NullableConverter.cs
- XPathScanner.cs
- SendMailErrorEventArgs.cs
- MetadataSerializer.cs
- RuntimeHelpers.cs
- Utils.cs
- Type.cs
- XmlBaseWriter.cs
- CustomErrorCollection.cs
- ExtentJoinTreeNode.cs
- DataServiceRequest.cs
- ItemDragEvent.cs
- ProxyGenerationError.cs
- Paragraph.cs
- HttpClientCertificate.cs
- XmlSchemaException.cs
- PeerCollaboration.cs
- ControllableStoryboardAction.cs
- Ref.cs
- InvalidComObjectException.cs
- IisTraceListener.cs
- TreeNodeStyle.cs
- AttachInfo.cs
- RegexWriter.cs
- SurrogateEncoder.cs
- TemplatedWizardStep.cs
- EntityConnection.cs
- RijndaelManagedTransform.cs
- TableFieldsEditor.cs
- Activator.cs
- SiteMap.cs
- GeometryGroup.cs
- ListMarkerLine.cs
- COM2Properties.cs
- Baml6ConstructorInfo.cs
- SwitchElementsCollection.cs
- DynamicValueConverter.cs
- SchemaCreator.cs
- DrawingAttributes.cs
- CollectionViewGroupInternal.cs
- InheritablePropertyChangeInfo.cs
- NullableBoolConverter.cs
- Duration.cs
- DbDataAdapter.cs
- ScrollChrome.cs
- PropertyOverridesTypeEditor.cs
- XmlAttributeHolder.cs
- SpeakInfo.cs
- RootProjectionNode.cs
- OleAutBinder.cs
- UpdatePanelTrigger.cs
- Tokenizer.cs
- DefaultBinder.cs
- SQLByte.cs
- XmlMapping.cs
- HScrollProperties.cs
- __Filters.cs
- EmbeddedObject.cs
- InstanceKeyView.cs
- CodeNamespaceImport.cs
- HtmlTernaryTree.cs
- XamlWriter.cs
- RecognitionEventArgs.cs
- DiscoveryClientRequestChannel.cs
- FlowLayoutSettings.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- PeerCollaborationPermission.cs
- SQLResource.cs
- GridViewRowPresenter.cs
- DesignerView.xaml.cs
- AssemblyNameUtility.cs
- Errors.cs
- IssuedSecurityTokenParameters.cs
- DocumentEventArgs.cs
- ChangeProcessor.cs
- CheckBoxList.cs
- embossbitmapeffect.cs
- CmsUtils.cs
- TypedDatasetGenerator.cs
- DataKey.cs
- NameValuePair.cs
- ScriptDescriptor.cs
- SqlDelegatedTransaction.cs
- RectAnimationClockResource.cs
- XhtmlBasicTextBoxAdapter.cs
- ScriptingRoleServiceSection.cs
- RemotingConfiguration.cs
- OleDbException.cs
- FixedSOMPageConstructor.cs
- SignedXml.cs
- Point4D.cs
- DataGridViewLinkColumn.cs
- DragStartedEventArgs.cs
- PageSettings.cs
- DynamicActivity.cs
- DataObject.cs
- HostingEnvironmentException.cs
- XmlILConstructAnalyzer.cs