Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- ExternalCalls.cs
- IImplicitResourceProvider.cs
- ProfilePropertySettings.cs
- UnsafeNativeMethodsTablet.cs
- ExpressionBindingsDialog.cs
- backend.cs
- OracleConnectionStringBuilder.cs
- _AutoWebProxyScriptEngine.cs
- ManipulationCompletedEventArgs.cs
- AlternateViewCollection.cs
- XmlNamespaceManager.cs
- WebHttpSecurityElement.cs
- QueryStringParameter.cs
- FrameworkContentElement.cs
- HexParser.cs
- Unit.cs
- basemetadatamappingvisitor.cs
- ConfigurationProviderException.cs
- ConditionalBranch.cs
- TTSEngineProxy.cs
- ReadOnlyNameValueCollection.cs
- SqlCommandBuilder.cs
- CultureTable.cs
- Parsers.cs
- BmpBitmapEncoder.cs
- WindowsGraphics2.cs
- GetIndexBinder.cs
- ProfileManager.cs
- TextUtf8RawTextWriter.cs
- DeclarativeCatalogPart.cs
- PageCatalogPart.cs
- MsmqIntegrationBindingElement.cs
- DrawingGroup.cs
- WindowsAuthenticationEventArgs.cs
- RelatedView.cs
- PortCache.cs
- DataGridViewIntLinkedList.cs
- WpfPayload.cs
- CodeLinePragma.cs
- RichTextBox.cs
- CellLabel.cs
- X509Chain.cs
- _NegoState.cs
- XmlSchemaInfo.cs
- FrameworkElement.cs
- CodeGeneratorOptions.cs
- XmlNamespaceDeclarationsAttribute.cs
- RijndaelManaged.cs
- SqlLiftIndependentRowExpressions.cs
- CommonObjectSecurity.cs
- WmiEventSink.cs
- EditModeSwitchButton.cs
- DataBoundLiteralControl.cs
- IDQuery.cs
- CompressEmulationStream.cs
- FixUpCollection.cs
- Listen.cs
- SubpageParaClient.cs
- XmlCodeExporter.cs
- CompilerTypeWithParams.cs
- FlowDocumentReaderAutomationPeer.cs
- CompilationUtil.cs
- Axis.cs
- Vector3DCollectionValueSerializer.cs
- TextRange.cs
- DBCommand.cs
- DependencyObjectProvider.cs
- MeasurementDCInfo.cs
- SettingsPropertyNotFoundException.cs
- WithParamAction.cs
- Membership.cs
- SQLInt32Storage.cs
- TableAdapterManagerMethodGenerator.cs
- SrgsSubset.cs
- HotSpot.cs
- DataReceivedEventArgs.cs
- Point4D.cs
- ServiceSettingsResponseInfo.cs
- ModuleElement.cs
- InlinedLocationReference.cs
- QilUnary.cs
- Header.cs
- StylusSystemGestureEventArgs.cs
- ReachDocumentReferenceSerializer.cs
- WebEvents.cs
- MenuItemStyle.cs
- DocumentCollection.cs
- TableColumnCollection.cs
- CalendarAutomationPeer.cs
- XmlChoiceIdentifierAttribute.cs
- ServiceElementCollection.cs
- MimeMultiPart.cs
- UmAlQuraCalendar.cs
- _LoggingObject.cs
- ActivityCodeDomSerializer.cs
- MediaScriptCommandRoutedEventArgs.cs
- xdrvalidator.cs
- MetadataPropertyCollection.cs
- Point4DConverter.cs
- EndOfStreamException.cs