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
- DataGridViewUtilities.cs
- TransformDescriptor.cs
- UInt32Converter.cs
- OnOperation.cs
- IdnMapping.cs
- BaseCollection.cs
- DataContract.cs
- ColumnTypeConverter.cs
- ErasingStroke.cs
- AdapterSwitches.cs
- DependencyPropertyChangedEventArgs.cs
- ContainerActivationHelper.cs
- XmlSchemaNotation.cs
- TextContainer.cs
- OrCondition.cs
- ObjectStorage.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- MiniModule.cs
- Executor.cs
- OutputCacheModule.cs
- UnionCqlBlock.cs
- CertificateReferenceElement.cs
- TextServicesHost.cs
- VerticalAlignConverter.cs
- HeaderUtility.cs
- HttpMethodConstraint.cs
- CustomAttribute.cs
- DataBinding.cs
- SplineKeyFrames.cs
- WebPartZoneCollection.cs
- PerformanceCounterCategory.cs
- TextEditor.cs
- ScriptingJsonSerializationSection.cs
- SecurityPolicySection.cs
- ErrorWrapper.cs
- CriticalHandle.cs
- SchemaElementDecl.cs
- UnhandledExceptionEventArgs.cs
- SafeHandle.cs
- _UriTypeConverter.cs
- ExtenderProvidedPropertyAttribute.cs
- ApplicationServiceHelper.cs
- ProcessHost.cs
- SqlBuilder.cs
- CharUnicodeInfo.cs
- DateTimeSerializationSection.cs
- BmpBitmapDecoder.cs
- FixedSOMTableRow.cs
- ExpressionSelection.cs
- WaitForChangedResult.cs
- Model3DCollection.cs
- PartDesigner.cs
- SqlConnectionHelper.cs
- GridViewRowEventArgs.cs
- ContextMarshalException.cs
- IntegerValidatorAttribute.cs
- TabOrder.cs
- DoubleStorage.cs
- SafeNativeMethodsCLR.cs
- EventBindingService.cs
- TextParagraph.cs
- GZipDecoder.cs
- DataReaderContainer.cs
- WebPartTransformer.cs
- Vector3D.cs
- OrderedDictionary.cs
- PointKeyFrameCollection.cs
- SqlXml.cs
- InputReferenceExpression.cs
- OpCopier.cs
- MetaModel.cs
- DockAndAnchorLayout.cs
- XmlMemberMapping.cs
- Rfc4050KeyFormatter.cs
- DodSequenceMerge.cs
- CqlWriter.cs
- WindowsClientCredential.cs
- ContainerUtilities.cs
- UnmanagedMemoryStreamWrapper.cs
- MarkedHighlightComponent.cs
- TraceHandlerErrorFormatter.cs
- SafeRegistryHandle.cs
- ActivityCodeDomSerializationManager.cs
- OdbcDataReader.cs
- GridErrorDlg.cs
- GeometryGroup.cs
- ImageButton.cs
- StatusBar.cs
- GenericTypeParameterBuilder.cs
- KeyedCollection.cs
- OdbcConnectionPoolProviderInfo.cs
- TrimSurroundingWhitespaceAttribute.cs
- PersistStreamTypeWrapper.cs
- XmlSecureResolver.cs
- MDIClient.cs
- ImageSourceConverter.cs
- securitycriticaldata.cs
- ExpressionConverter.cs
- DataControlImageButton.cs
- ConfigUtil.cs