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
- LabelDesigner.cs
- XmlSchemaValidationException.cs
- HtmlTextViewAdapter.cs
- InstanceDataCollectionCollection.cs
- RawUIStateInputReport.cs
- AmbientValueAttribute.cs
- AssertHelper.cs
- Scalars.cs
- FormView.cs
- AuthenticatedStream.cs
- PriorityChain.cs
- GridView.cs
- SerializationAttributes.cs
- PixelShader.cs
- ColorIndependentAnimationStorage.cs
- CreateRefExpr.cs
- MailHeaderInfo.cs
- LocatorGroup.cs
- _NtlmClient.cs
- SectionVisual.cs
- CodeThrowExceptionStatement.cs
- VariantWrapper.cs
- CodeValidator.cs
- Operators.cs
- DefaultPrintController.cs
- BindToObject.cs
- StreamInfo.cs
- InspectionWorker.cs
- ClrProviderManifest.cs
- UidPropertyAttribute.cs
- SharedPersonalizationStateInfo.cs
- TreeNodeConverter.cs
- Reference.cs
- RegionIterator.cs
- ContentWrapperAttribute.cs
- EventLogPermissionAttribute.cs
- HttpHeaderCollection.cs
- ValidateNames.cs
- TextClipboardData.cs
- ThemeInfoAttribute.cs
- SafeEventHandle.cs
- SqlMethodCallConverter.cs
- SqlTriggerAttribute.cs
- TransactionScope.cs
- UnsafeNetInfoNativeMethods.cs
- SQLGuidStorage.cs
- COM2ExtendedUITypeEditor.cs
- _FtpControlStream.cs
- PowerStatus.cs
- Literal.cs
- SpeechEvent.cs
- TrustLevelCollection.cs
- Inflater.cs
- OleDbException.cs
- FileVersion.cs
- TableProviderWrapper.cs
- ProfilePropertySettingsCollection.cs
- ReflectionHelper.cs
- NavigateEvent.cs
- EntityTransaction.cs
- CopyNamespacesAction.cs
- TabControlDesigner.cs
- OperationFormatter.cs
- DecimalAnimationBase.cs
- DiagnosticsConfigurationHandler.cs
- HierarchicalDataSourceControl.cs
- CompilerResults.cs
- StylusPointDescription.cs
- DataBinder.cs
- AppDomainManager.cs
- WebConfigurationManager.cs
- KeyValuePairs.cs
- ACL.cs
- ObjectView.cs
- HandledMouseEvent.cs
- X509Certificate2.cs
- httpserverutility.cs
- Line.cs
- SimpleWebHandlerParser.cs
- CompModSwitches.cs
- WebPageTraceListener.cs
- DragEventArgs.cs
- CompilerWrapper.cs
- Unit.cs
- ScrollProviderWrapper.cs
- GenericTypeParameterBuilder.cs
- FileDetails.cs
- TextEffectCollection.cs
- RequestFactory.cs
- RuleRefElement.cs
- EndpointConfigContainer.cs
- WebRequestModulesSection.cs
- PrimitiveXmlSerializers.cs
- Base64Encoder.cs
- WebProxyScriptElement.cs
- WebColorConverter.cs
- ForAllOperator.cs
- FeatureSupport.cs
- MD5CryptoServiceProvider.cs
- WinEventTracker.cs