Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDescription.cs / 1 / WebPartDescription.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UndoManager.cs
- RuleSettings.cs
- Dictionary.cs
- CancelRequestedRecord.cs
- Thickness.cs
- StringConverter.cs
- DrawingAttributesDefaultValueFactory.cs
- DoubleStorage.cs
- DataObject.cs
- PropertyGrid.cs
- EntityTypeEmitter.cs
- FixedSOMPage.cs
- ViewBox.cs
- CustomValidator.cs
- Logging.cs
- RefType.cs
- InstancePersistenceCommandException.cs
- InheritanceRules.cs
- FrameSecurityDescriptor.cs
- SqlDataReaderSmi.cs
- ActivityCodeDomSerializer.cs
- PropertyTab.cs
- RayMeshGeometry3DHitTestResult.cs
- MappingMetadataHelper.cs
- DirectoryInfo.cs
- SecureStringHasher.cs
- ControlAdapter.cs
- MultipartIdentifier.cs
- ToolConsole.cs
- InputScope.cs
- SystemIPGlobalProperties.cs
- CountdownEvent.cs
- ProxyGenerator.cs
- ReachDocumentReferenceSerializerAsync.cs
- SafeNativeMemoryHandle.cs
- XmlSchemas.cs
- HttpConfigurationContext.cs
- MemberMaps.cs
- DynamicAttribute.cs
- OrderedDictionary.cs
- CustomPeerResolverService.cs
- System.Data_BID.cs
- ScaleTransform3D.cs
- TextSchema.cs
- TransformConverter.cs
- UriTemplateTableMatchCandidate.cs
- InheritedPropertyChangedEventArgs.cs
- UserControl.cs
- NamespaceList.cs
- CompatibleComparer.cs
- DateTime.cs
- WizardPanelChangingEventArgs.cs
- ReadOnlyCollectionBase.cs
- TextModifierScope.cs
- MILUtilities.cs
- ErrorWrapper.cs
- BlurBitmapEffect.cs
- Repeater.cs
- ThemeableAttribute.cs
- DateTimeConstantAttribute.cs
- COM2Enum.cs
- MouseActionValueSerializer.cs
- SafeReversePInvokeHandle.cs
- CacheOutputQuery.cs
- HybridObjectCache.cs
- CachedRequestParams.cs
- UIElement.cs
- BitmapFrame.cs
- DataTemplate.cs
- StorageMappingItemLoader.cs
- ComplexBindingPropertiesAttribute.cs
- HashCodeCombiner.cs
- TypeContext.cs
- SafeMarshalContext.cs
- ICspAsymmetricAlgorithm.cs
- EdmSchemaError.cs
- ButtonField.cs
- DispatcherEventArgs.cs
- InkCanvas.cs
- IList.cs
- ScriptModule.cs
- AppDomainManager.cs
- XmlObjectSerializerContext.cs
- ipaddressinformationcollection.cs
- OdbcConnectionOpen.cs
- Int64Converter.cs
- XPathDocument.cs
- SiteMapDataSourceDesigner.cs
- WebProxyScriptElement.cs
- LeaseManager.cs
- LogicalCallContext.cs
- DropDownButton.cs
- CategoryGridEntry.cs
- TriState.cs
- AdvancedBindingPropertyDescriptor.cs
- ReachDocumentReferenceCollectionSerializer.cs
- NamedPipeAppDomainProtocolHandler.cs
- SQLRoleProvider.cs
- LineVisual.cs
- StreamGeometry.cs