Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDescription.cs / 1305376 / WebPartDescription.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; 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; 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
- DragAssistanceManager.cs
- DebugView.cs
- RotateTransform3D.cs
- PropertyCollection.cs
- DesignerCommandAdapter.cs
- NavigatingCancelEventArgs.cs
- SqlUserDefinedTypeAttribute.cs
- OutputCacheProfileCollection.cs
- BindingsCollection.cs
- ControlBindingsCollection.cs
- XmlDeclaration.cs
- IndependentAnimationStorage.cs
- PeerEndPoint.cs
- SyndicationSerializer.cs
- TemplateBindingExtension.cs
- UIPermission.cs
- ArgumentValue.cs
- ValidationSummary.cs
- TreeNodeSelectionProcessor.cs
- GenericIdentity.cs
- EncoderParameters.cs
- EmbeddedMailObject.cs
- Brush.cs
- RequestResponse.cs
- DefaultProfileManager.cs
- ContractListAdapter.cs
- CustomAssemblyResolver.cs
- TextEffectCollection.cs
- AssemblyEvidenceFactory.cs
- ReliabilityContractAttribute.cs
- IPipelineRuntime.cs
- BadImageFormatException.cs
- SemanticResultValue.cs
- SspiNegotiationTokenAuthenticator.cs
- HScrollProperties.cs
- KnownBoxes.cs
- SafeTimerHandle.cs
- QueryResults.cs
- basenumberconverter.cs
- OptimalBreakSession.cs
- XmlSchemaSimpleContentExtension.cs
- DataGridViewRowConverter.cs
- GetLedgerRequest.cs
- CodeAccessSecurityEngine.cs
- RepeaterItemEventArgs.cs
- SystemFonts.cs
- ReflectPropertyDescriptor.cs
- ConfigurationException.cs
- XmlSchemaException.cs
- DynamicResourceExtensionConverter.cs
- TextElementEnumerator.cs
- GlyphRunDrawing.cs
- Page.cs
- AdPostCacheSubstitution.cs
- CallId.cs
- CapiSymmetricAlgorithm.cs
- ButtonFlatAdapter.cs
- CryptoStream.cs
- ButtonColumn.cs
- TraceUtility.cs
- ReadOnlyDataSource.cs
- IteratorDescriptor.cs
- DesignTimeParseData.cs
- Point3DCollectionValueSerializer.cs
- EmptyQuery.cs
- ScrollItemPattern.cs
- Point3DAnimationBase.cs
- SqlConnectionHelper.cs
- Dictionary.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- FlowLayoutPanel.cs
- CryptographicAttribute.cs
- ButtonFlatAdapter.cs
- X509ChainPolicy.cs
- NegotiateStream.cs
- ResourceManagerWrapper.cs
- AppDomainResourcePerfCounters.cs
- storepermission.cs
- WinEventHandler.cs
- CustomWebEventKey.cs
- ServiceDescriptionSerializer.cs
- DocumentViewerConstants.cs
- IdentityModelDictionary.cs
- DataKeyCollection.cs
- behaviorssection.cs
- CancellationState.cs
- DataTransferEventArgs.cs
- EntityDataSourceSelectingEventArgs.cs
- TextTabProperties.cs
- WindowsTab.cs
- ControlType.cs
- MemoryRecordBuffer.cs
- ConnectivityStatus.cs
- AnimatedTypeHelpers.cs
- XmlSchemaType.cs
- PolicyManager.cs
- StickyNoteHelper.cs
- StructuralType.cs
- UnsafeNativeMethods.cs
- CancellationTokenRegistration.cs