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
- CssClassPropertyAttribute.cs
- WasEndpointConfigContainer.cs
- XmlSchemaGroup.cs
- NameValueConfigurationCollection.cs
- DockingAttribute.cs
- Panel.cs
- TransactionScope.cs
- CustomMenuItemCollection.cs
- FixedSchema.cs
- EventListenerClientSide.cs
- NetSectionGroup.cs
- StorageEntityContainerMapping.cs
- BooleanKeyFrameCollection.cs
- HttpCapabilitiesBase.cs
- UTF32Encoding.cs
- Label.cs
- PrintController.cs
- InheritanceRules.cs
- SecurityCriticalDataForSet.cs
- LineGeometry.cs
- SwitchLevelAttribute.cs
- OutputCacheSection.cs
- SqlRowUpdatingEvent.cs
- UIElementAutomationPeer.cs
- AppDomainManager.cs
- EllipseGeometry.cs
- RoutedEventValueSerializer.cs
- UnsafeMethods.cs
- SigningCredentials.cs
- RijndaelManagedTransform.cs
- PropertyGridView.cs
- CheckBoxField.cs
- AnimationClockResource.cs
- XmlEntity.cs
- SystemParameters.cs
- FlowDocumentPage.cs
- XmlWriter.cs
- DesignerDataSourceView.cs
- MemoryFailPoint.cs
- ToolStripGripRenderEventArgs.cs
- BaseContextMenu.cs
- SqlServices.cs
- ReachUIElementCollectionSerializer.cs
- SystemIcmpV6Statistics.cs
- XmlAnyElementAttribute.cs
- Quaternion.cs
- Trigger.cs
- ConstructorArgumentAttribute.cs
- InputScope.cs
- ZipIOCentralDirectoryFileHeader.cs
- ZipIOCentralDirectoryBlock.cs
- UInt32.cs
- SqlCommand.cs
- ArgumentOutOfRangeException.cs
- SaveFileDialog.cs
- ObjectViewQueryResultData.cs
- DataReaderContainer.cs
- ExpressionNode.cs
- OutputCacheProviderCollection.cs
- ClientSettingsProvider.cs
- AdornerLayer.cs
- ObjectSecurity.cs
- DetailsViewDeletedEventArgs.cs
- FolderBrowserDialog.cs
- PropertyInfoSet.cs
- SqlUDTStorage.cs
- XmlSchemaCompilationSettings.cs
- FlowLayout.cs
- HtmlInputCheckBox.cs
- PageParserFilter.cs
- ListManagerBindingsCollection.cs
- KeySpline.cs
- Verify.cs
- Zone.cs
- EventLogPermissionAttribute.cs
- AssemblyBuilder.cs
- XmlChoiceIdentifierAttribute.cs
- Calendar.cs
- DbConnectionFactory.cs
- AppDomainCompilerProxy.cs
- XmlCompatibilityReader.cs
- LoginUtil.cs
- WebRequestModulesSection.cs
- GraphicsPathIterator.cs
- DataGridViewControlCollection.cs
- WindowsRichEditRange.cs
- WmfPlaceableFileHeader.cs
- TraceSection.cs
- WebPartZone.cs
- DataBoundLiteralControl.cs
- Converter.cs
- Serializer.cs
- DbModificationClause.cs
- FontInfo.cs
- IsolatedStoragePermission.cs
- WindowsIdentity.cs
- OleDbDataReader.cs
- CaretElement.cs
- ExceptionHelpers.cs
- TextHidden.cs