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
- EdmItemCollection.cs
- ObjectReaderCompiler.cs
- MemoryResponseElement.cs
- EmptyReadOnlyDictionaryInternal.cs
- ServiceHandle.cs
- ArrayTypeMismatchException.cs
- util.cs
- SocketInformation.cs
- DataGridSortCommandEventArgs.cs
- X509ChainPolicy.cs
- BooleanKeyFrameCollection.cs
- AddInActivator.cs
- ServiceRouteHandler.cs
- ReachUIElementCollectionSerializer.cs
- ElementAtQueryOperator.cs
- ChannelBinding.cs
- ListenerAdapterBase.cs
- UniqueEventHelper.cs
- NonParentingControl.cs
- xsdvalidator.cs
- XhtmlBasicObjectListAdapter.cs
- CompilerGlobalScopeAttribute.cs
- SubMenuStyle.cs
- SQLStringStorage.cs
- CapabilitiesUse.cs
- JpegBitmapEncoder.cs
- Int32AnimationUsingKeyFrames.cs
- XhtmlMobileTextWriter.cs
- ELinqQueryState.cs
- XPathParser.cs
- SystemColors.cs
- SpecularMaterial.cs
- PictureBoxDesigner.cs
- ExpressionEvaluator.cs
- PrivilegedConfigurationManager.cs
- LostFocusEventManager.cs
- LinqDataView.cs
- RpcAsyncResult.cs
- basevalidator.cs
- EntityStoreSchemaFilterEntry.cs
- ExternalDataExchangeClient.cs
- LongValidator.cs
- OleDbRowUpdatedEvent.cs
- TextEditorTables.cs
- TripleDES.cs
- CorrelationResolver.cs
- BaseTreeIterator.cs
- ProjectionPathBuilder.cs
- QueryAccessibilityHelpEvent.cs
- RepeaterDataBoundAdapter.cs
- ValidatingPropertiesEventArgs.cs
- ControlPropertyNameConverter.cs
- WebResourceUtil.cs
- SupportedAddressingMode.cs
- OverflowException.cs
- OletxDependentTransaction.cs
- UpDownEvent.cs
- ToolStripOverflowButton.cs
- UserControlDesigner.cs
- DataChangedEventManager.cs
- EditableRegion.cs
- ExpressionConverter.cs
- FigureParaClient.cs
- RuleConditionDialog.Designer.cs
- PathFigure.cs
- WebPartDisplayModeEventArgs.cs
- GlobalizationSection.cs
- CachedBitmap.cs
- TextSpan.cs
- InitializationEventAttribute.cs
- MediaPlayerState.cs
- TerminatingOperationBehavior.cs
- ApplicationId.cs
- DataObject.cs
- EventRoute.cs
- CodeTryCatchFinallyStatement.cs
- PropertyGridCommands.cs
- XmlQualifiedName.cs
- MetafileHeaderWmf.cs
- EntityDesignerBuildProvider.cs
- SQLSingle.cs
- RelatedImageListAttribute.cs
- StorageAssociationTypeMapping.cs
- KeyValuePairs.cs
- SqlAliasesReferenced.cs
- Image.cs
- MemberProjectedSlot.cs
- SmiContext.cs
- WebPartMinimizeVerb.cs
- IndicShape.cs
- XmlNamespaceMappingCollection.cs
- WindowsStartMenu.cs
- AsnEncodedData.cs
- CheckBox.cs
- XmlSubtreeReader.cs
- DoubleUtil.cs
- DependencyPropertyDescriptor.cs
- XPathDocumentBuilder.cs
- TextTreeNode.cs
- PageClientProxyGenerator.cs