Code:
/ FX-1434 / FX-1434 / 1.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
- Knowncolors.cs
- DataGridViewCellCancelEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- SimpleWorkerRequest.cs
- RuntimeWrappedException.cs
- SerializationInfoEnumerator.cs
- ProgressBarBrushConverter.cs
- RequestContextBase.cs
- BamlResourceSerializer.cs
- OletxCommittableTransaction.cs
- PrintPreviewControl.cs
- SimpleExpression.cs
- ObjectTypeMapping.cs
- AsyncStreamReader.cs
- DataViewManagerListItemTypeDescriptor.cs
- TemplateBindingExtensionConverter.cs
- InkCollectionBehavior.cs
- EditorPart.cs
- DataGridItemCollection.cs
- SqlDataSourceConfigureSelectPanel.cs
- ISSmlParser.cs
- Activator.cs
- DbMetaDataColumnNames.cs
- EqualityArray.cs
- ListBoxAutomationPeer.cs
- SinglePageViewer.cs
- IdentityNotMappedException.cs
- arc.cs
- DiscriminatorMap.cs
- ApplicationGesture.cs
- VerticalAlignConverter.cs
- NavigationHelper.cs
- Inflater.cs
- UndirectedGraph.cs
- StructuredTypeInfo.cs
- PageThemeParser.cs
- HttpResponseHeader.cs
- AspCompat.cs
- AuthenticationModuleElement.cs
- GridViewColumnHeaderAutomationPeer.cs
- RootDesignerSerializerAttribute.cs
- QuaternionConverter.cs
- SettingsBindableAttribute.cs
- FrugalMap.cs
- UnionCodeGroup.cs
- RegionIterator.cs
- RawStylusActions.cs
- UnsafeNativeMethods.cs
- Tag.cs
- DocumentViewerAutomationPeer.cs
- CellLabel.cs
- ContainerSelectorActiveEvent.cs
- FolderBrowserDialog.cs
- EnvironmentPermission.cs
- OperationPickerDialog.cs
- EnvelopedPkcs7.cs
- TemplateBuilder.cs
- SequentialOutput.cs
- WebPartZoneCollection.cs
- LayoutEditorPart.cs
- ListItemCollection.cs
- BitmapCodecInfoInternal.cs
- EdmItemCollection.cs
- HierarchicalDataBoundControl.cs
- ColorMap.cs
- TextDecorationCollectionConverter.cs
- WebPartConnectionsCloseVerb.cs
- UIntPtr.cs
- AppDomainProtocolHandler.cs
- MarkedHighlightComponent.cs
- ReferencedAssemblyResolver.cs
- KeyValuePair.cs
- CombinedGeometry.cs
- ScriptControl.cs
- WeakReferenceKey.cs
- DataRowChangeEvent.cs
- RegionIterator.cs
- RelationshipType.cs
- ErrorLog.cs
- CodeTypeDeclaration.cs
- NetNamedPipeBindingCollectionElement.cs
- BaseCodeDomTreeGenerator.cs
- CodeTypeParameter.cs
- CreateUserWizard.cs
- BindingList.cs
- FormViewModeEventArgs.cs
- InvalidOleVariantTypeException.cs
- Camera.cs
- ScrollContentPresenter.cs
- EncoderExceptionFallback.cs
- RuleAttributes.cs
- GridViewUpdateEventArgs.cs
- JsonFormatReaderGenerator.cs
- DataControlLinkButton.cs
- TextEmbeddedObject.cs
- LabelTarget.cs
- UTF7Encoding.cs
- BindingSourceDesigner.cs
- ItemCheckEvent.cs
- FactoryRecord.cs