Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientScriptManager.cs
- RuntimeVariablesExpression.cs
- TypeConverterValueSerializer.cs
- OdbcEnvironment.cs
- StackBuilderSink.cs
- PathFigureCollectionConverter.cs
- RenderDataDrawingContext.cs
- CookieProtection.cs
- EncoderExceptionFallback.cs
- UnionExpr.cs
- QueueProcessor.cs
- XmlSchema.cs
- ConstNode.cs
- ProxyHwnd.cs
- CompiledQueryCacheKey.cs
- DataServiceContext.cs
- InkCanvasFeedbackAdorner.cs
- RSAPKCS1SignatureFormatter.cs
- TreeViewBindingsEditor.cs
- MdImport.cs
- GenericAuthenticationEventArgs.cs
- UriParserTemplates.cs
- Triangle.cs
- ImageSource.cs
- SystemSounds.cs
- UriScheme.cs
- SchemaNames.cs
- XNodeValidator.cs
- RequiredFieldValidator.cs
- SessionStateModule.cs
- SynchronizationContext.cs
- NameValuePair.cs
- FrameSecurityDescriptor.cs
- ViewUtilities.cs
- Focus.cs
- WebRequestModuleElement.cs
- TableParaClient.cs
- CodeAttachEventStatement.cs
- HttpResponse.cs
- AuthStoreRoleProvider.cs
- ChannelPoolSettingsElement.cs
- SchemaManager.cs
- LoginView.cs
- ResolveDuplexCD1AsyncResult.cs
- XmlSchemaAnyAttribute.cs
- ValidationError.cs
- CustomAttributeSerializer.cs
- IdentityElement.cs
- SerializationUtilities.cs
- Vector.cs
- DataSourceCollectionBase.cs
- URLIdentityPermission.cs
- ResourceIDHelper.cs
- PropertyDescriptorCollection.cs
- FilterableAttribute.cs
- TypeForwardedToAttribute.cs
- XmlHierarchyData.cs
- RenderingEventArgs.cs
- DataIdProcessor.cs
- PrintingPermission.cs
- ToolStripRenderEventArgs.cs
- BooleanStorage.cs
- DebugView.cs
- Interlocked.cs
- RoleService.cs
- PerformanceCounterPermission.cs
- TextRunTypographyProperties.cs
- Button.cs
- TokenBasedSetEnumerator.cs
- HashCryptoHandle.cs
- ObjectQueryProvider.cs
- SmtpReplyReaderFactory.cs
- DefaultParameterValueAttribute.cs
- SmiGettersStream.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SparseMemoryStream.cs
- TreeViewImageIndexConverter.cs
- SystemUnicastIPAddressInformation.cs
- FixedSOMContainer.cs
- X509AsymmetricSecurityKey.cs
- PointConverter.cs
- RTLAwareMessageBox.cs
- BamlLocalizableResource.cs
- ChangeConflicts.cs
- GroupItem.cs
- KeyboardNavigation.cs
- ComponentCommands.cs
- NamespaceList.cs
- InstanceKeyCompleteException.cs
- Image.cs
- SerializationSectionGroup.cs
- Size.cs
- Int16Storage.cs
- TextWriterEngine.cs
- SortableBindingList.cs
- IsolatedStoragePermission.cs
- CatalogPart.cs
- ScrollChrome.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ExpressionEvaluator.cs