Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SupportingTokenListenerFactory.cs
- ApplicationTrust.cs
- DynamicEntity.cs
- ItemAutomationPeer.cs
- ShapeTypeface.cs
- ToolboxBitmapAttribute.cs
- __Error.cs
- DataGridViewRowPostPaintEventArgs.cs
- SevenBitStream.cs
- ToolStripSplitStackLayout.cs
- SourceInterpreter.cs
- DbParameterCollectionHelper.cs
- PropertyTab.cs
- BaseProcessor.cs
- EnumMemberAttribute.cs
- XmlPropertyBag.cs
- DBCSCodePageEncoding.cs
- ItemContainerGenerator.cs
- xml.cs
- CommonObjectSecurity.cs
- PageFunction.cs
- TextFormatterHost.cs
- MeasurementDCInfo.cs
- TimeIntervalCollection.cs
- TableCellAutomationPeer.cs
- InstanceHandleReference.cs
- DllNotFoundException.cs
- SurrogateChar.cs
- PageClientProxyGenerator.cs
- RemotingAttributes.cs
- RecognizerInfo.cs
- XsltOutput.cs
- BufferAllocator.cs
- DataGridViewImageCell.cs
- SizeConverter.cs
- Model3DGroup.cs
- ConfigurationFileMap.cs
- StylusPointPropertyInfo.cs
- SafeFindHandle.cs
- Header.cs
- UpdateCommandGenerator.cs
- DataBindingExpressionBuilder.cs
- ScrollProperties.cs
- OleCmdHelper.cs
- CodeCompiler.cs
- CustomAttributeSerializer.cs
- PropertyIDSet.cs
- XmlSchemaValidationException.cs
- EncryptedData.cs
- PropertyRef.cs
- StrongName.cs
- EventArgs.cs
- CaseStatement.cs
- TextSearch.cs
- ContainerSelectorActiveEvent.cs
- StackBuilderSink.cs
- odbcmetadatafactory.cs
- ImageListImageEditor.cs
- BindingGroup.cs
- ToolStripDropDownMenu.cs
- Literal.cs
- ExternalDataExchangeService.cs
- DeviceSpecificChoiceCollection.cs
- httpserverutility.cs
- Guid.cs
- AnnotationDocumentPaginator.cs
- Timer.cs
- DecimalConstantAttribute.cs
- CheckBox.cs
- HttpRequest.cs
- CellPartitioner.cs
- input.cs
- NonVisualControlAttribute.cs
- IsolatedStoragePermission.cs
- ConsumerConnectionPoint.cs
- TogglePatternIdentifiers.cs
- SqlDependency.cs
- EditingCommands.cs
- PartitionResolver.cs
- X509CertificateTrustedIssuerElement.cs
- ExpressionBuilderContext.cs
- securitycriticaldataClass.cs
- XmlDomTextWriter.cs
- AdapterDictionary.cs
- VerticalAlignConverter.cs
- Vector3DAnimation.cs
- SessionPageStateSection.cs
- SectionRecord.cs
- ConfigXmlAttribute.cs
- StaticFileHandler.cs
- PositiveTimeSpanValidator.cs
- RowVisual.cs
- VarRefManager.cs
- EventTrigger.cs
- DataGridViewUtilities.cs
- XamlTypeMapper.cs
- HelpKeywordAttribute.cs
- XPathSingletonIterator.cs
- XmlSchemaObjectCollection.cs
- Attributes.cs