Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / MonitoringDescriptionAttribute.cs / 1305376 / MonitoringDescriptionAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Diagnostics {
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)]
public class MonitoringDescriptionAttribute : DescriptionAttribute {
private bool replaced = false;
///
/// Constructs a new sys description.
///
public MonitoringDescriptionAttribute(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;
}
}
}
}
// 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
- FormViewInsertEventArgs.cs
- WebPartCatalogAddVerb.cs
- ExpressionList.cs
- EllipseGeometry.cs
- DocumentSchemaValidator.cs
- OdbcFactory.cs
- BlurEffect.cs
- QilStrConcat.cs
- PeerNameRecordCollection.cs
- SqlClientFactory.cs
- MappingException.cs
- InstanceKeyCollisionException.cs
- ScrollChrome.cs
- NetworkInterface.cs
- OfTypeExpression.cs
- SymbolDocumentGenerator.cs
- FilterElement.cs
- Binding.cs
- TransformedBitmap.cs
- ResourceReferenceKeyNotFoundException.cs
- BinHexEncoder.cs
- LinkButton.cs
- AttributeParameterInfo.cs
- CodeDefaultValueExpression.cs
- HttpConfigurationSystem.cs
- QilFactory.cs
- HtmlControlPersistable.cs
- Polyline.cs
- WebPartTracker.cs
- PropertyGeneratedEventArgs.cs
- SqlConnectionHelper.cs
- ScriptingProfileServiceSection.cs
- SlipBehavior.cs
- TextFormatter.cs
- x509store.cs
- ServiceXNameTypeConverter.cs
- Event.cs
- CodeAttributeDeclaration.cs
- StickyNote.cs
- RegexTree.cs
- SharingService.cs
- ForEachAction.cs
- WmlLabelAdapter.cs
- DataSvcMapFile.cs
- TdsParserStaticMethods.cs
- TypeElementCollection.cs
- ComplexObject.cs
- DispatcherExceptionFilterEventArgs.cs
- RoleManagerModule.cs
- TraceInternal.cs
- sqlinternaltransaction.cs
- EntityDataSourceSelectingEventArgs.cs
- QilLiteral.cs
- Maps.cs
- RegistryConfigurationProvider.cs
- CultureInfoConverter.cs
- KeyBinding.cs
- Unit.cs
- __Filters.cs
- DispatcherExceptionFilterEventArgs.cs
- PersonalizationEntry.cs
- SqlDeflator.cs
- TranslateTransform.cs
- DataGridViewColumnTypePicker.cs
- ExeConfigurationFileMap.cs
- WindowsTokenRoleProvider.cs
- InvokeWebServiceDesigner.cs
- RegexFCD.cs
- TreeView.cs
- TogglePattern.cs
- InputElement.cs
- PriorityBinding.cs
- EdmFunctions.cs
- MediaElement.cs
- DisableDpiAwarenessAttribute.cs
- DesignerTransaction.cs
- CompositeFontParser.cs
- CollectionChangeEventArgs.cs
- WebSysDefaultValueAttribute.cs
- AbandonedMutexException.cs
- EntityDesignerBuildProvider.cs
- TemplateBuilder.cs
- ClientTargetSection.cs
- PrintDialogException.cs
- SessionStateUtil.cs
- SelectorAutomationPeer.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- AppDomainEvidenceFactory.cs
- HtmlInputRadioButton.cs
- MessageUtil.cs
- EmptyElement.cs
- IISMapPath.cs
- KeyFrames.cs
- SurrogateEncoder.cs
- DataView.cs
- namescope.cs
- CodeSnippetCompileUnit.cs
- OneOf.cs
- SuppressIldasmAttribute.cs
- StatusBarItemAutomationPeer.cs