Code:
/ FX-1434 / FX-1434 / 1.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
- SignerInfo.cs
- GifBitmapEncoder.cs
- RawTextInputReport.cs
- DateTimeConverter2.cs
- EntityDescriptor.cs
- SourceFileBuildProvider.cs
- XmlUtf8RawTextWriter.cs
- COM2ExtendedTypeConverter.cs
- SHA1Managed.cs
- ActiveXHelper.cs
- MultiByteCodec.cs
- TextPattern.cs
- RecordBuilder.cs
- SecurityTimestamp.cs
- HtmlInputHidden.cs
- XamlStyleSerializer.cs
- DataServiceProviderWrapper.cs
- RemotingSurrogateSelector.cs
- ICspAsymmetricAlgorithm.cs
- XmlDownloadManager.cs
- SafeIUnknown.cs
- FaultContractInfo.cs
- CaseStatement.cs
- WebPartDisplayModeEventArgs.cs
- ConfigXmlElement.cs
- WsdlBuildProvider.cs
- cache.cs
- SettingsBindableAttribute.cs
- EmissiveMaterial.cs
- Transform3D.cs
- XAMLParseException.cs
- SchemeSettingElement.cs
- SplitterEvent.cs
- XsltInput.cs
- RadioButton.cs
- RoleService.cs
- GatewayDefinition.cs
- WaitHandleCannotBeOpenedException.cs
- SrgsRule.cs
- MultiByteCodec.cs
- DocComment.cs
- FontUnitConverter.cs
- TempFiles.cs
- NumericExpr.cs
- CursorConverter.cs
- ToolboxComponentsCreatingEventArgs.cs
- NativeMethods.cs
- DesignerTransaction.cs
- DataServiceQueryContinuation.cs
- MatrixKeyFrameCollection.cs
- MethodAccessException.cs
- FileDialogCustomPlace.cs
- SrgsToken.cs
- UTF8Encoding.cs
- CodeGenHelper.cs
- CornerRadiusConverter.cs
- MatrixTransform3D.cs
- ListViewSortEventArgs.cs
- InternalControlCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- RotateTransform.cs
- CancellationState.cs
- XmlElementAttribute.cs
- CodeNamespaceCollection.cs
- DbProviderServices.cs
- BooleanExpr.cs
- ToolStripProgressBar.cs
- SerializationStore.cs
- ActivityWithResult.cs
- ToolStripDropDownMenu.cs
- Rules.cs
- WebPartDeleteVerb.cs
- ResolvePPIDRequest.cs
- FileSystemWatcher.cs
- TokenCreationParameter.cs
- RegisteredExpandoAttribute.cs
- Converter.cs
- PersianCalendar.cs
- IdentityVerifier.cs
- DPAPIProtectedConfigurationProvider.cs
- ResourceContainer.cs
- CodeObject.cs
- FlowDocument.cs
- TextEditorThreadLocalStore.cs
- AuthenticationService.cs
- OneOf.cs
- IERequestCache.cs
- SizeAnimationClockResource.cs
- DecimalStorage.cs
- InputMethodStateChangeEventArgs.cs
- XDRSchema.cs
- TryCatchDesigner.xaml.cs
- SecurityCriticalDataForSet.cs
- SafeRegistryHandle.cs
- WindowsFormsLinkLabel.cs
- Tool.cs
- DataContractSerializerOperationBehavior.cs
- WebHttpBindingElement.cs
- JulianCalendar.cs
- DPTypeDescriptorContext.cs