Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PackagePart.cs
- ThreadSafeList.cs
- HtmlInputControl.cs
- ProxyOperationRuntime.cs
- ReflectPropertyDescriptor.cs
- SelectedCellsChangedEventArgs.cs
- SecurityDescriptor.cs
- XmlSchemaCompilationSettings.cs
- UnsafeNativeMethodsMilCoreApi.cs
- NavigatorInput.cs
- Splitter.cs
- login.cs
- TransactionProtocolConverter.cs
- SectionUpdates.cs
- WebPartsSection.cs
- TypeConstant.cs
- DPAPIProtectedConfigurationProvider.cs
- WebRequestModuleElement.cs
- EncoderReplacementFallback.cs
- ExpressionNormalizer.cs
- DocumentSchemaValidator.cs
- FeedUtils.cs
- TextParagraphCache.cs
- State.cs
- LinkLabel.cs
- ColumnHeaderConverter.cs
- ListViewItem.cs
- CookieParameter.cs
- AnnouncementSendsAsyncResult.cs
- ExcludeFromCodeCoverageAttribute.cs
- WebPartConnectionsEventArgs.cs
- MenuAdapter.cs
- TextureBrush.cs
- odbcmetadatacollectionnames.cs
- ZeroOpNode.cs
- Tile.cs
- FilteredXmlReader.cs
- BridgeDataReader.cs
- IntellisenseTextBox.cs
- ModelPerspective.cs
- BufferedMessageData.cs
- DeobfuscatingStream.cs
- MatrixCamera.cs
- ProxyHelper.cs
- EventHandlersStore.cs
- SqlMethodTransformer.cs
- ApplicationManager.cs
- PropertySourceInfo.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- Imaging.cs
- FixedSOMTableRow.cs
- HandlerBase.cs
- Ipv6Element.cs
- SettingsBindableAttribute.cs
- WsdlBuildProvider.cs
- XmlDigitalSignatureProcessor.cs
- ResourcesBuildProvider.cs
- HtmlHead.cs
- DiscoveryRequestHandler.cs
- ShaderEffect.cs
- _UncName.cs
- CodeLinePragma.cs
- ServiceParser.cs
- FixedPageProcessor.cs
- WebServiceMethodData.cs
- BindingObserver.cs
- ViewStateModeByIdAttribute.cs
- TreeView.cs
- InkPresenter.cs
- DoubleKeyFrameCollection.cs
- LZCodec.cs
- XmlUrlResolver.cs
- TextRangeBase.cs
- SqlTopReducer.cs
- ProxyWebPartConnectionCollection.cs
- HitTestWithPointDrawingContextWalker.cs
- DataBindingList.cs
- MobileComponentEditorPage.cs
- ToolStripContainer.cs
- InternalCompensate.cs
- NumberFunctions.cs
- WebPartMinimizeVerb.cs
- ISFClipboardData.cs
- ClientSideQueueItem.cs
- Misc.cs
- TextServicesHost.cs
- TreeNodeSelectionProcessor.cs
- SignatureHelper.cs
- JoinSymbol.cs
- ResourceWriter.cs
- IndentTextWriter.cs
- HostingEnvironmentException.cs
- PolygonHotSpot.cs
- WebPartEditorOkVerb.cs
- ValidatedMobileControlConverter.cs
- ISCIIEncoding.cs
- ComponentResourceKey.cs
- WebPartAddingEventArgs.cs
- DecoderReplacementFallback.cs
- SupportsEventValidationAttribute.cs