Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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
- ChangeBlockUndoRecord.cs
- Oid.cs
- MethodBuilderInstantiation.cs
- SystemWebCachingSectionGroup.cs
- SyndicationItemFormatter.cs
- WindowPattern.cs
- NamespaceImport.cs
- DataGridrowEditEndingEventArgs.cs
- SystemInfo.cs
- FormsAuthenticationEventArgs.cs
- ProcessingInstructionAction.cs
- DataGridViewCellStyleEditor.cs
- GenericRootAutomationPeer.cs
- TableItemStyle.cs
- BufferBuilder.cs
- _TimerThread.cs
- ServiceBusyException.cs
- RelationshipManager.cs
- Lasso.cs
- ColumnWidthChangingEvent.cs
- CodePageEncoding.cs
- BindingList.cs
- SectionVisual.cs
- RequiredFieldValidator.cs
- ServiceKnownTypeAttribute.cs
- SqlClientFactory.cs
- XmlSchemaCollection.cs
- SponsorHelper.cs
- EpmSyndicationContentSerializer.cs
- SafeRightsManagementSessionHandle.cs
- PKCS1MaskGenerationMethod.cs
- NeutralResourcesLanguageAttribute.cs
- ListView.cs
- VirtualDirectoryMapping.cs
- RawContentTypeMapper.cs
- BindStream.cs
- SecurityHelper.cs
- CompositeTypefaceMetrics.cs
- Parsers.cs
- WinCategoryAttribute.cs
- EventEntry.cs
- DetailsViewInsertedEventArgs.cs
- EdmTypeAttribute.cs
- Int64.cs
- SmiRecordBuffer.cs
- RegexGroup.cs
- SqlMultiplexer.cs
- FlowDocumentFormatter.cs
- Operand.cs
- SByte.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CodeSubDirectoriesCollection.cs
- NavigateEvent.cs
- CanonicalFormWriter.cs
- CrossSiteScriptingValidation.cs
- HtmlControlPersistable.cs
- CultureTable.cs
- EventLogger.cs
- DiscoveryExceptionDictionary.cs
- SortFieldComparer.cs
- TextContainerChangedEventArgs.cs
- XmlSchemaObjectCollection.cs
- DrawingGroup.cs
- CodeTypeReferenceCollection.cs
- CompositeFontFamily.cs
- Converter.cs
- SmtpDateTime.cs
- SystemBrushes.cs
- Repeater.cs
- Point3DAnimationUsingKeyFrames.cs
- CssStyleCollection.cs
- DbProviderManifest.cs
- AVElementHelper.cs
- GenericTransactionFlowAttribute.cs
- DataGridViewCellStyleConverter.cs
- FileUtil.cs
- ClientFormsIdentity.cs
- ZoneButton.cs
- ClientOptions.cs
- Latin1Encoding.cs
- SoapObjectWriter.cs
- ServiceObjectContainer.cs
- XmlWriterDelegator.cs
- IPPacketInformation.cs
- GridItem.cs
- PartialToken.cs
- InvalidDataException.cs
- BitmapEffectvisualstate.cs
- TypeCollectionPropertyEditor.cs
- ACL.cs
- AnchorEditor.cs
- LicenseException.cs
- Configuration.cs
- HttpModuleActionCollection.cs
- Metafile.cs
- DefaultDiscoveryServiceExtension.cs
- HttpListenerContext.cs
- DictionaryBase.cs
- XpsStructure.cs
- EncoderNLS.cs