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
- ReversePositionQuery.cs
- PrimitiveSchema.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- sqlpipe.cs
- cache.cs
- DbConnectionClosed.cs
- XmlSerializerSection.cs
- XmlSerializerFactory.cs
- ProvideValueServiceProvider.cs
- WebHttpBinding.cs
- JsonServiceDocumentSerializer.cs
- ImageCodecInfo.cs
- columnmapfactory.cs
- TypeUtil.cs
- EmptyEnumerator.cs
- Completion.cs
- ResXBuildProvider.cs
- ValidationSettings.cs
- FamilyMap.cs
- WebBrowser.cs
- ObjectSecurityT.cs
- NavigationWindow.cs
- CheckBoxStandardAdapter.cs
- ExpandoObject.cs
- NameValueSectionHandler.cs
- WebPartTransformerCollection.cs
- SqlProcedureAttribute.cs
- ApplicationServicesHostFactory.cs
- SmiContext.cs
- OuterGlowBitmapEffect.cs
- ValidationPropertyAttribute.cs
- RemotingSurrogateSelector.cs
- SortExpressionBuilder.cs
- HandledEventArgs.cs
- CompilerGlobalScopeAttribute.cs
- SafeTimerHandle.cs
- FindSimilarActivitiesVerb.cs
- MetadataImporter.cs
- ServicesUtilities.cs
- PassportAuthenticationModule.cs
- MultiBinding.cs
- AssociationType.cs
- EncryptedHeaderXml.cs
- IndentedWriter.cs
- Setter.cs
- DateTimeFormat.cs
- ObjectStateManager.cs
- WorkflowDesigner.cs
- SafeFileMappingHandle.cs
- SmiGettersStream.cs
- DynamicMethod.cs
- Graph.cs
- AbstractExpressions.cs
- FixedSOMImage.cs
- MenuItem.cs
- BitmapFrameEncode.cs
- ObjectHelper.cs
- ExcCanonicalXml.cs
- Transform3DGroup.cs
- IPAddress.cs
- AttributeUsageAttribute.cs
- ProxyWebPart.cs
- XmlEntityReference.cs
- CircleHotSpot.cs
- TextRange.cs
- MetabaseServerConfig.cs
- EventMappingSettingsCollection.cs
- ComponentResourceManager.cs
- Converter.cs
- OpenTypeLayout.cs
- ProfileGroupSettingsCollection.cs
- _HelperAsyncResults.cs
- remotingproxy.cs
- TagMapInfo.cs
- safemediahandle.cs
- NameValueFileSectionHandler.cs
- TextServicesContext.cs
- EnumBuilder.cs
- SiteMapNodeCollection.cs
- SendActivityDesigner.cs
- ColumnReorderedEventArgs.cs
- WindowsStatusBar.cs
- SynchronizationContext.cs
- AdPostCacheSubstitution.cs
- PasswordRecoveryDesigner.cs
- SystemPens.cs
- HtmlHistory.cs
- SecurityPolicySection.cs
- DBCommand.cs
- PrimitiveType.cs
- DefaultExpression.cs
- OdbcTransaction.cs
- hresults.cs
- DataTableClearEvent.cs
- CompiledXpathExpr.cs
- StringExpressionSet.cs
- EraserBehavior.cs
- Stack.cs
- ModelUIElement3D.cs
- ByteBufferPool.cs