Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / WebSysDescriptionAttribute.cs / 1305376 / WebSysDescriptionAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web {
using System;
using System.ComponentModel;
///
/// DescriptionAttribute marks a property, event, or extender with a
/// description. Visual designers can display this description when referencing
/// the member.
///
[AttributeUsage(AttributeTargets.All)]
internal class WebSysDescriptionAttribute : DescriptionAttribute {
private bool replaced;
///
/// Constructs a new sys description.
///
internal WebSysDescriptionAttribute(string description) : base(description) {
}
///
/// Retrieves the description text.
///
public override string Description {
get {
if (!replaced) {
replaced = true;
DescriptionValue = SR.GetString(base.Description);
}
return base.Description;
}
}
public override object TypeId {
get {
return typeof(DescriptionAttribute);
}
}
}
}
// 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
- WebRequestModulesSection.cs
- CLSCompliantAttribute.cs
- TimeStampChecker.cs
- SubpageParaClient.cs
- CodeBlockBuilder.cs
- EventWaitHandleSecurity.cs
- CultureInfo.cs
- DesignerCategoryAttribute.cs
- IgnorePropertiesAttribute.cs
- LinearGradientBrush.cs
- x509store.cs
- RsaElement.cs
- WebControlAdapter.cs
- DataControlFieldCollection.cs
- Condition.cs
- AnnotationComponentManager.cs
- FullTrustAssemblyCollection.cs
- DetailsViewDeletedEventArgs.cs
- EventLog.cs
- VariantWrapper.cs
- ImageIndexEditor.cs
- EditorPart.cs
- RuntimeArgumentHandle.cs
- VariableAction.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- NotificationContext.cs
- DBBindings.cs
- HMAC.cs
- TemplateControlBuildProvider.cs
- Fonts.cs
- WebException.cs
- RequestCacheManager.cs
- tooltip.cs
- TrackBarRenderer.cs
- NetworkInformationException.cs
- TextTreeInsertUndoUnit.cs
- XPathNodeList.cs
- AmbientValueAttribute.cs
- InfoCardMasterKey.cs
- InfiniteTimeSpanConverter.cs
- HtmlElement.cs
- webeventbuffer.cs
- SmtpMail.cs
- SystemGatewayIPAddressInformation.cs
- MenuItemCollection.cs
- ResourceReferenceExpressionConverter.cs
- RefExpr.cs
- SecondaryViewProvider.cs
- MarkupWriter.cs
- Attributes.cs
- TextSegment.cs
- SourceFileBuildProvider.cs
- FolderNameEditor.cs
- ITreeGenerator.cs
- HttpContextWrapper.cs
- DeferredSelectedIndexReference.cs
- UriExt.cs
- NeutralResourcesLanguageAttribute.cs
- FaultCallbackWrapper.cs
- NameValueConfigurationCollection.cs
- BitmapEffectInputData.cs
- DefaultPropertiesToSend.cs
- CellTreeNodeVisitors.cs
- Polyline.cs
- QilChoice.cs
- WindowsToolbarItemAsMenuItem.cs
- SqlVersion.cs
- ExtensionWindowResizeGrip.cs
- ObjectStateManagerMetadata.cs
- RuleProcessor.cs
- ImageSource.cs
- Condition.cs
- FileChangesMonitor.cs
- OrderedDictionary.cs
- OdbcParameter.cs
- StateDesignerConnector.cs
- UnsafeNativeMethods.cs
- XmlEncodedRawTextWriter.cs
- SqlCommandBuilder.cs
- ScaleTransform.cs
- VisualProxy.cs
- EllipseGeometry.cs
- HttpCacheParams.cs
- COAUTHIDENTITY.cs
- ClientSession.cs
- FilterQueryOptionExpression.cs
- VSWCFServiceContractGenerator.cs
- TemplatedWizardStep.cs
- propertyentry.cs
- AtomServiceDocumentSerializer.cs
- ConsoleTraceListener.cs
- _ShellExpression.cs
- InsufficientMemoryException.cs
- SafeLibraryHandle.cs
- TreeViewItem.cs
- NamespaceCollection.cs
- CharEnumerator.cs
- ValueChangedEventManager.cs
- RuleAttributes.cs
- Section.cs