Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / Monitoring / system / Diagnosticts / MonitoringDescriptionAttribute.cs / 1 / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrefixQName.cs
- NotImplementedException.cs
- BulletDecorator.cs
- UniqueIdentifierService.cs
- SingleStorage.cs
- CatalogZone.cs
- IdnElement.cs
- LogStream.cs
- ObjectPropertyMapping.cs
- CodeSubDirectory.cs
- CodeAssignStatement.cs
- arclist.cs
- TabPage.cs
- PointConverter.cs
- RegexCaptureCollection.cs
- PrimitiveType.cs
- WindowsFormsSectionHandler.cs
- QueryOptionExpression.cs
- XmlWriterTraceListener.cs
- DataServiceQuery.cs
- SecurityContextTokenCache.cs
- hwndwrapper.cs
- FileIOPermission.cs
- VisualStyleRenderer.cs
- ZipIOCentralDirectoryBlock.cs
- UserMapPath.cs
- MetadataArtifactLoaderCompositeResource.cs
- ValueSerializerAttribute.cs
- ValidatorCompatibilityHelper.cs
- RawStylusSystemGestureInputReport.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- HMACRIPEMD160.cs
- TimerElapsedEvenArgs.cs
- SizeAnimationUsingKeyFrames.cs
- CloudCollection.cs
- TypeInitializationException.cs
- ComponentConverter.cs
- UIHelper.cs
- _HeaderInfo.cs
- ValueType.cs
- PermissionListSet.cs
- XmlUTF8TextReader.cs
- TextFormatterHost.cs
- FieldNameLookup.cs
- EntityConnectionStringBuilder.cs
- TouchEventArgs.cs
- ResourceContainer.cs
- DynamicPropertyReader.cs
- PageThemeBuildProvider.cs
- DbConnectionStringBuilder.cs
- PageTheme.cs
- TemplateInstanceAttribute.cs
- NativeActivityMetadata.cs
- WeakEventManager.cs
- RMEnrollmentPage2.cs
- cookieexception.cs
- DataSourceControlBuilder.cs
- ErrorEventArgs.cs
- Int32CollectionConverter.cs
- GrabHandleGlyph.cs
- TextAnchor.cs
- ClientFormsIdentity.cs
- XhtmlTextWriter.cs
- ZipPackage.cs
- MemberProjectedSlot.cs
- CompModSwitches.cs
- ArithmeticException.cs
- CompilerTypeWithParams.cs
- PathTooLongException.cs
- FilterRepeater.cs
- ChannelDispatcherBase.cs
- BitVector32.cs
- AsyncStreamReader.cs
- TraceHwndHost.cs
- TreeNodeStyle.cs
- BaseAddressPrefixFilterElementCollection.cs
- XmlSchemaException.cs
- LowerCaseStringConverter.cs
- InvariantComparer.cs
- HttpRequestCacheValidator.cs
- ToolboxItemFilterAttribute.cs
- _NestedMultipleAsyncResult.cs
- SourceLocationProvider.cs
- PrintDialog.cs
- MinMaxParagraphWidth.cs
- TextContainer.cs
- StoreContentChangedEventArgs.cs
- SolidColorBrush.cs
- UserNamePasswordClientCredential.cs
- DbConnectionStringBuilder.cs
- Mutex.cs
- TextEvent.cs
- HashHelper.cs
- TextRangeEdit.cs
- DesignOnlyAttribute.cs
- CoTaskMemHandle.cs
- RegisteredScript.cs
- ServiceConfigurationTraceRecord.cs
- SizeChangedEventArgs.cs
- LoginName.cs