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
- QuadraticBezierSegment.cs
- SerializationException.cs
- ToolStripDropDownMenu.cs
- PeerNameRecordCollection.cs
- DataGridViewMethods.cs
- CompositeFontFamily.cs
- PassportIdentity.cs
- XsltArgumentList.cs
- XPathExpr.cs
- CngUIPolicy.cs
- CodeCastExpression.cs
- OleDbConnectionInternal.cs
- TextViewDesigner.cs
- CompModSwitches.cs
- Byte.cs
- ViewSimplifier.cs
- DataBinding.cs
- ModelTypeConverter.cs
- HttpCapabilitiesEvaluator.cs
- TypeNameConverter.cs
- XmlBinaryWriterSession.cs
- UshortList2.cs
- TableColumn.cs
- ScriptControlDescriptor.cs
- MatrixStack.cs
- KnownIds.cs
- DataSetUtil.cs
- EmptyEnumerator.cs
- StrongNameMembershipCondition.cs
- NextPreviousPagerField.cs
- ObjectDataSourceDisposingEventArgs.cs
- ClassHandlersStore.cs
- ApplicationTrust.cs
- DateTimeFormatInfoScanner.cs
- ClientBuildManager.cs
- SynchronizedInputHelper.cs
- MasterPage.cs
- MultiBinding.cs
- DbProviderManifest.cs
- Int32RectConverter.cs
- ProfessionalColorTable.cs
- CssTextWriter.cs
- SoapExtensionStream.cs
- PageContentCollection.cs
- FieldDescriptor.cs
- PolicyStatement.cs
- ExeConfigurationFileMap.cs
- IntegrationExceptionEventArgs.cs
- RtfNavigator.cs
- ConstantProjectedSlot.cs
- SmiEventSink_DeferedProcessing.cs
- HTMLTagNameToTypeMapper.cs
- BitmapFrame.cs
- PermissionSet.cs
- UrlMappingsModule.cs
- ConfigXmlWhitespace.cs
- DocumentSequence.cs
- ManifestSignedXml.cs
- SimpleTypeResolver.cs
- DisplayMemberTemplateSelector.cs
- String.cs
- ConfigurationSection.cs
- ComponentConverter.cs
- GridViewColumnHeaderAutomationPeer.cs
- SID.cs
- ColorAnimation.cs
- ChannelTokenTypeConverter.cs
- WebBrowserProgressChangedEventHandler.cs
- BlockExpression.cs
- TypeHelper.cs
- DmlSqlGenerator.cs
- HttpRuntimeSection.cs
- Certificate.cs
- PropertyMetadata.cs
- DisposableCollectionWrapper.cs
- control.ime.cs
- CircleEase.cs
- WebPartCatalogAddVerb.cs
- DataContractSet.cs
- ScanQueryOperator.cs
- baseaxisquery.cs
- TextMetrics.cs
- HwndSource.cs
- StandardMenuStripVerb.cs
- MediaScriptCommandRoutedEventArgs.cs
- EnumBuilder.cs
- GroupQuery.cs
- HttpGetServerProtocol.cs
- Variable.cs
- MarkerProperties.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- PixelFormats.cs
- ModuleBuilder.cs
- WindowsGraphics.cs
- RangeBaseAutomationPeer.cs
- WorkflowMarkupSerializerMapping.cs
- lengthconverter.cs
- TrustLevel.cs
- DataGridViewRowEventArgs.cs
- ValidateNames.cs