Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EnlistmentTraceIdentifier.cs
- LicenseManager.cs
- WinInetCache.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SchemaNotation.cs
- ObjectPropertyMapping.cs
- TrustDriver.cs
- DesignerSerializationOptionsAttribute.cs
- TextRangeEditTables.cs
- documentsequencetextcontainer.cs
- WindowsTooltip.cs
- BitmapMetadataEnumerator.cs
- LabelEditEvent.cs
- ObjectDataSource.cs
- CodeBlockBuilder.cs
- ConfigXmlComment.cs
- ImageBrush.cs
- ADConnectionHelper.cs
- PKCS1MaskGenerationMethod.cs
- Compress.cs
- XmlSchemaInferenceException.cs
- ServiceModelConfigurationSection.cs
- AudioBase.cs
- ByteStreamBufferedMessageData.cs
- PathSegmentCollection.cs
- safesecurityhelperavalon.cs
- TransactionFlowAttribute.cs
- PersonalizationProviderHelper.cs
- BaseCAMarshaler.cs
- StrongTypingException.cs
- ActivityBuilder.cs
- GraphicsPath.cs
- TableLayoutRowStyleCollection.cs
- WebServiceClientProxyGenerator.cs
- CodeTypeConstructor.cs
- ReplyChannelAcceptor.cs
- unsafenativemethodsother.cs
- HtmlUtf8RawTextWriter.cs
- DrawingContextDrawingContextWalker.cs
- ZipIOExtraFieldElement.cs
- ResXDataNode.cs
- Win32SafeHandles.cs
- GenericNameHandler.cs
- Error.cs
- GradientSpreadMethodValidation.cs
- LongPath.cs
- DefaultAssemblyResolver.cs
- ProfileModule.cs
- PropertyEmitter.cs
- AccessibleObject.cs
- XamlGridLengthSerializer.cs
- WebReferencesBuildProvider.cs
- AnonymousIdentificationSection.cs
- HttpModuleActionCollection.cs
- SqlDependencyListener.cs
- recordstate.cs
- InteropAutomationProvider.cs
- ChainOfDependencies.cs
- ListViewInsertionMark.cs
- VarRemapper.cs
- StackOverflowException.cs
- PageRanges.cs
- LogEntryDeserializer.cs
- ResourceManager.cs
- IPPacketInformation.cs
- ProtocolViolationException.cs
- PageAsyncTaskManager.cs
- StringArrayEditor.cs
- Schedule.cs
- WindowsFormsSectionHandler.cs
- TreeNodeBinding.cs
- ColumnHeaderConverter.cs
- DataColumnMapping.cs
- MemberPathMap.cs
- ClickablePoint.cs
- SystemResourceKey.cs
- BidPrivateBase.cs
- TdsParser.cs
- Int64AnimationBase.cs
- XmlSerializationReader.cs
- Crc32.cs
- RefType.cs
- SelectionPattern.cs
- PowerStatus.cs
- SupportingTokenSpecification.cs
- BinaryConverter.cs
- DecimalStorage.cs
- StickyNoteContentControl.cs
- MiniModule.cs
- BooleanFunctions.cs
- BamlResourceDeserializer.cs
- DBNull.cs
- ServiceNotStartedException.cs
- DbBuffer.cs
- RulePatternOps.cs
- ResourcePermissionBaseEntry.cs
- Automation.cs
- ValueChangedEventManager.cs
- SqlCacheDependency.cs
- PeerCollaborationPermission.cs