Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlEnumAttribute.cs
- Brushes.cs
- RuntimeVariableList.cs
- InputLanguageProfileNotifySink.cs
- DayRenderEvent.cs
- ApplicationServicesHostFactory.cs
- NeutralResourcesLanguageAttribute.cs
- ScaleTransform3D.cs
- TypeListConverter.cs
- PolyBezierSegment.cs
- XmlAggregates.cs
- Directory.cs
- DataFieldConverter.cs
- ScriptReferenceEventArgs.cs
- RawUIStateInputReport.cs
- ClientData.cs
- CodeConditionStatement.cs
- CompoundFileStreamReference.cs
- Subset.cs
- MessageFilter.cs
- ReaderContextStackData.cs
- IISUnsafeMethods.cs
- IIS7WorkerRequest.cs
- ComponentResourceKeyConverter.cs
- FacetDescriptionElement.cs
- DesignerCommandAdapter.cs
- Int64.cs
- SqlDataSourceEnumerator.cs
- CodePageUtils.cs
- ButtonBaseAdapter.cs
- Array.cs
- CaseInsensitiveComparer.cs
- VBIdentifierTrimConverter.cs
- PropertyCollection.cs
- NotFiniteNumberException.cs
- XmlSchemaElement.cs
- ReferencedCollectionType.cs
- XmlComment.cs
- XmlConvert.cs
- DbgCompiler.cs
- RowBinding.cs
- WebEvents.cs
- xamlnodes.cs
- CodeComment.cs
- StdValidatorsAndConverters.cs
- ParseElementCollection.cs
- XmlSchemaChoice.cs
- FontUnitConverter.cs
- HttpServerVarsCollection.cs
- XmlExpressionDumper.cs
- Attribute.cs
- ResXResourceWriter.cs
- Delegate.cs
- NavigatorInvalidBodyAccessException.cs
- WebPartEditorCancelVerb.cs
- HttpListenerContext.cs
- FormsAuthentication.cs
- FillErrorEventArgs.cs
- WindowInteractionStateTracker.cs
- OracleParameterCollection.cs
- MetadataItemEmitter.cs
- HScrollBar.cs
- SystemThemeKey.cs
- TraceLevelStore.cs
- DataGridViewSortCompareEventArgs.cs
- ValidationManager.cs
- MetadataExchangeClient.cs
- ClientConfigPaths.cs
- QuaternionAnimationBase.cs
- DataGridViewRowCollection.cs
- PageHandlerFactory.cs
- ThousandthOfEmRealDoubles.cs
- ReaderOutput.cs
- WCFModelStrings.Designer.cs
- TaskExceptionHolder.cs
- TaskDesigner.cs
- FontCacheUtil.cs
- WebPartMenuStyle.cs
- GridItemProviderWrapper.cs
- TypeDescriptionProviderAttribute.cs
- UrlEncodedParameterWriter.cs
- XmlSubtreeReader.cs
- UnsafeNativeMethods.cs
- entitydatasourceentitysetnameconverter.cs
- WindowsFormsHostAutomationPeer.cs
- WebPartDescriptionCollection.cs
- CollectionView.cs
- BufferedConnection.cs
- DBSqlParserTable.cs
- RichTextBox.cs
- QuotaThrottle.cs
- FixedDocumentSequencePaginator.cs
- WindowsSecurityTokenAuthenticator.cs
- PartManifestEntry.cs
- EntityDesignerBuildProvider.cs
- TextEncodedRawTextWriter.cs
- basenumberconverter.cs
- DataGridItemEventArgs.cs
- FacetDescription.cs
- BridgeDataReader.cs