Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ParameterCollection.cs
- LinqDataSource.cs
- ComEventsHelper.cs
- XmlSchemaSimpleType.cs
- NaturalLanguageHyphenator.cs
- UserPreferenceChangingEventArgs.cs
- CompositeControl.cs
- InternalConfigRoot.cs
- ListenerSingletonConnectionReader.cs
- List.cs
- ToolStripContainer.cs
- PartialList.cs
- UnsafeNativeMethodsCLR.cs
- ManipulationLogic.cs
- SamlAction.cs
- NotImplementedException.cs
- TypeContext.cs
- SerialPinChanges.cs
- DoWhileDesigner.xaml.cs
- SessionParameter.cs
- ConfigurationElement.cs
- JsonFormatReaderGenerator.cs
- StringAnimationUsingKeyFrames.cs
- hwndwrapper.cs
- Timeline.cs
- MonikerProxyAttribute.cs
- AnnotationResource.cs
- Msmq.cs
- SvcMapFile.cs
- QEncodedStream.cs
- TextSelectionProcessor.cs
- DefinitionBase.cs
- DataGridBoolColumn.cs
- Int32AnimationBase.cs
- Keyboard.cs
- WebConfigurationManager.cs
- XmlSchemaExporter.cs
- TextOnlyOutput.cs
- GPRECT.cs
- RoutedPropertyChangedEventArgs.cs
- CFGGrammar.cs
- PromptEventArgs.cs
- CommentGlyph.cs
- UnsafeNativeMethods.cs
- BitmapEffectState.cs
- AppDomainProtocolHandler.cs
- MgmtConfigurationRecord.cs
- ProfileBuildProvider.cs
- SingleTagSectionHandler.cs
- Timer.cs
- HtmlControlPersistable.cs
- FrameDimension.cs
- InstanceDescriptor.cs
- XmlAttributeCollection.cs
- x509utils.cs
- SetStateEventArgs.cs
- QuaternionAnimationUsingKeyFrames.cs
- KnownTypes.cs
- XmlAttributeCollection.cs
- PixelShader.cs
- Debugger.cs
- WsdlInspector.cs
- ReflectionPermission.cs
- ListBoxItem.cs
- SimpleRecyclingCache.cs
- EtwTrackingParticipant.cs
- CodeRegionDirective.cs
- SqlWorkflowInstanceStore.cs
- MenuItemStyle.cs
- RenderingEventArgs.cs
- Italic.cs
- ExecutorLocksHeldException.cs
- ScriptingWebServicesSectionGroup.cs
- GradientStop.cs
- SqlDataAdapter.cs
- StatusInfoItem.cs
- ButtonField.cs
- NamedObject.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TableLayoutPanel.cs
- WebBrowserUriTypeConverter.cs
- CodeTypeConstructor.cs
- TreeIterator.cs
- BookmarkCallbackWrapper.cs
- ObjectView.cs
- ViewEvent.cs
- DesignerMetadata.cs
- CharConverter.cs
- PropertySourceInfo.cs
- PatternMatcher.cs
- MissingManifestResourceException.cs
- RowToFieldTransformer.cs
- Atom10FormatterFactory.cs
- SessionStateContainer.cs
- KnownBoxes.cs
- InkCanvasAutomationPeer.cs
- SynchronizedDispatch.cs
- QualifierSet.cs
- WindowsListBox.cs
- HtmlLink.cs