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
- PriorityChain.cs
- AccessibleObject.cs
- TemplateComponentConnector.cs
- ScriptingSectionGroup.cs
- SafePointer.cs
- SqlExpander.cs
- ErasingStroke.cs
- DataColumnMapping.cs
- ModifyActivitiesPropertyDescriptor.cs
- EmptyElement.cs
- XmlSchemaInfo.cs
- WSSecurityJan2004.cs
- AbsoluteQuery.cs
- HierarchicalDataTemplate.cs
- ActiveXContainer.cs
- MimeTextImporter.cs
- FileResponseElement.cs
- Error.cs
- PartManifestEntry.cs
- CommandBindingCollection.cs
- IPipelineRuntime.cs
- Animatable.cs
- GridViewSelectEventArgs.cs
- InputBindingCollection.cs
- FamilyMap.cs
- DeclaredTypeElement.cs
- RegexStringValidator.cs
- DecimalKeyFrameCollection.cs
- isolationinterop.cs
- Screen.cs
- DocumentXPathNavigator.cs
- TrackingWorkflowEventArgs.cs
- XmlDataCollection.cs
- DrawListViewColumnHeaderEventArgs.cs
- EndOfStreamException.cs
- RegistrySecurity.cs
- ADMembershipUser.cs
- DynamicPropertyReader.cs
- EntityDataSourceViewSchema.cs
- BuiltInExpr.cs
- NamespaceInfo.cs
- BitmapEffectDrawing.cs
- PanelStyle.cs
- TempFiles.cs
- XmlSchemaComplexContentRestriction.cs
- _Rfc2616CacheValidators.cs
- DataPagerField.cs
- NetSectionGroup.cs
- WebContext.cs
- Pkcs9Attribute.cs
- WebServiceResponseDesigner.cs
- processwaithandle.cs
- TextEditorMouse.cs
- XmlArrayAttribute.cs
- DataControlCommands.cs
- CellCreator.cs
- CodeExpressionCollection.cs
- ObjectSecurity.cs
- UIElement3D.cs
- SettingsSection.cs
- WorkflowCompensationBehavior.cs
- EmbeddedMailObjectsCollection.cs
- WorkflowApplicationUnloadedException.cs
- TextEditorCharacters.cs
- SafeEventLogWriteHandle.cs
- RegistryKey.cs
- QuaternionRotation3D.cs
- SqlTypeConverter.cs
- QilGenerator.cs
- TreeNodeClickEventArgs.cs
- GZipStream.cs
- BitmapEffectInputData.cs
- WebPartTransformerCollection.cs
- ThrowHelper.cs
- SynchronizingStream.cs
- Binding.cs
- DataColumn.cs
- CultureInfoConverter.cs
- CheckBox.cs
- AutoResetEvent.cs
- ConfigurationManagerHelperFactory.cs
- QueuePathDialog.cs
- OperationContext.cs
- ContentValidator.cs
- IntMinMaxAggregationOperator.cs
- assertwrapper.cs
- TrackBarRenderer.cs
- Code.cs
- CollectionBase.cs
- ListControl.cs
- Span.cs
- BindingValueChangedEventArgs.cs
- ProxySimple.cs
- TemplateApplicationHelper.cs
- safelink.cs
- PropertyEntry.cs
- SmiContextFactory.cs
- GlyphShapingProperties.cs
- PassportIdentity.cs
- TableLayoutPanelCodeDomSerializer.cs