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
- ViewgenGatekeeper.cs
- WpfWebRequestHelper.cs
- Action.cs
- HostedHttpTransportManager.cs
- Setter.cs
- SapiInterop.cs
- DataTable.cs
- GlyphRun.cs
- GridViewSortEventArgs.cs
- DummyDataSource.cs
- TCPClient.cs
- TargetException.cs
- RegexRunner.cs
- AutoGeneratedField.cs
- ProfilePropertySettingsCollection.cs
- VarRemapper.cs
- XamlValidatingReader.cs
- MethodImplAttribute.cs
- SimpleNameService.cs
- RelationshipEndMember.cs
- PaperSize.cs
- ProgressiveCrcCalculatingStream.cs
- ListViewSortEventArgs.cs
- Stack.cs
- FrameworkContextData.cs
- Evidence.cs
- FileNotFoundException.cs
- MobileUserControl.cs
- BinHexEncoding.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- LocatorPartList.cs
- XmlComplianceUtil.cs
- ThicknessAnimation.cs
- SrgsElementFactory.cs
- RepeaterCommandEventArgs.cs
- RoutedUICommand.cs
- SafeNativeMethods.cs
- GridToolTip.cs
- SemaphoreSecurity.cs
- TextTreeRootNode.cs
- CharKeyFrameCollection.cs
- ViewUtilities.cs
- SHA384CryptoServiceProvider.cs
- EventHandlingScope.cs
- ObjectRef.cs
- DataGridPagerStyle.cs
- FileDialog.cs
- TextEditorCopyPaste.cs
- GridItemPattern.cs
- OdbcCommandBuilder.cs
- ToolStripItem.cs
- RegexInterpreter.cs
- JavaScriptObjectDeserializer.cs
- UnaryOperationBinder.cs
- NullableConverter.cs
- Util.cs
- ReadOnlyCollectionBase.cs
- CoreChannel.cs
- ResetableIterator.cs
- WebPartConnectionsEventArgs.cs
- LongSumAggregationOperator.cs
- RegexCompilationInfo.cs
- PlatformCulture.cs
- CollectionBuilder.cs
- MemoryMappedViewAccessor.cs
- CellRelation.cs
- BadImageFormatException.cs
- InkCanvasSelection.cs
- RegularExpressionValidator.cs
- ProcessThreadCollection.cs
- Keywords.cs
- GeneralTransform3DGroup.cs
- InlinedAggregationOperator.cs
- LinkDesigner.cs
- InputBindingCollection.cs
- ToolStripSystemRenderer.cs
- ParameterToken.cs
- DataRecordObjectView.cs
- XmlDataSourceView.cs
- TreeNode.cs
- DefinitionBase.cs
- XmlDictionaryString.cs
- XsltException.cs
- HtmlInputRadioButton.cs
- LookupBindingPropertiesAttribute.cs
- InvalidPrinterException.cs
- CreateParams.cs
- _AutoWebProxyScriptEngine.cs
- TextTreeUndoUnit.cs
- InternalResources.cs
- SymbolType.cs
- DependencyObjectType.cs
- RedistVersionInfo.cs
- SQLInt16.cs
- Configuration.cs
- OutKeywords.cs
- JpegBitmapDecoder.cs
- RelationshipType.cs
- TreeNodeCollectionEditor.cs
- BasicExpandProvider.cs