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
- SafeNativeMethods.cs
- DocumentViewerBaseAutomationPeer.cs
- ClickablePoint.cs
- ImageKeyConverter.cs
- EUCJPEncoding.cs
- StatusBarPanelClickEvent.cs
- ImageClickEventArgs.cs
- QuestionEventArgs.cs
- TypeDescriptionProvider.cs
- CodeAccessPermission.cs
- Propagator.JoinPropagator.cs
- XXXInfos.cs
- ToolStripLabel.cs
- EdmTypeAttribute.cs
- SolidColorBrush.cs
- NonBatchDirectoryCompiler.cs
- VirtualizedItemPattern.cs
- AsyncResult.cs
- UntypedNullExpression.cs
- RtfControls.cs
- TextViewBase.cs
- CommandValueSerializer.cs
- Aes.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ThaiBuddhistCalendar.cs
- LocalizationComments.cs
- XmlNamespaceMappingCollection.cs
- EmptyStringExpandableObjectConverter.cs
- TypeCollectionPropertyEditor.cs
- DiagnosticTraceSource.cs
- Light.cs
- Bitmap.cs
- XomlCompilerHelpers.cs
- CacheVirtualItemsEvent.cs
- TextServicesHost.cs
- HtmlContainerControl.cs
- ComponentCollection.cs
- NamespaceList.cs
- AuthenticationModuleElement.cs
- WebPartAddingEventArgs.cs
- SafeCloseHandleCritical.cs
- TrackingDataItem.cs
- CustomAttributeSerializer.cs
- Button.cs
- ForAllOperator.cs
- PixelFormat.cs
- OracleRowUpdatedEventArgs.cs
- FixUpCollection.cs
- DirectoryNotFoundException.cs
- DataServiceQuery.cs
- Socket.cs
- AccessDataSourceView.cs
- WsdlInspector.cs
- SchemaExporter.cs
- EmptyStringExpandableObjectConverter.cs
- TextAdaptor.cs
- formatter.cs
- InputReferenceExpression.cs
- RevocationPoint.cs
- SafeCryptoHandles.cs
- Console.cs
- TextTrailingWordEllipsis.cs
- Vector3DCollectionConverter.cs
- AssemblyAssociatedContentFileAttribute.cs
- DBParameter.cs
- Char.cs
- DataContract.cs
- DataGridItemEventArgs.cs
- XmlSchemaAnnotated.cs
- AnonymousIdentificationModule.cs
- RtfFormatStack.cs
- MethodCallConverter.cs
- BitStack.cs
- SchemaComplexType.cs
- OrderedDictionaryStateHelper.cs
- AddInContractAttribute.cs
- Padding.cs
- TabControl.cs
- TransformedBitmap.cs
- ContentPosition.cs
- WindowsScrollBarBits.cs
- OLEDB_Util.cs
- InstanceKeyCollisionException.cs
- Empty.cs
- SByteConverter.cs
- ListViewCommandEventArgs.cs
- AssemblyAssociatedContentFileAttribute.cs
- X509SecurityTokenAuthenticator.cs
- TagMapInfo.cs
- BitmapData.cs
- Attributes.cs
- UpdateTracker.cs
- DataSourceControlBuilder.cs
- Rfc2898DeriveBytes.cs
- BuildProvidersCompiler.cs
- RuleSetDialog.cs
- JavaScriptString.cs
- AttachmentCollection.cs
- Subset.cs
- ProcessHostFactoryHelper.cs