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
- AutoGeneratedField.cs
- ColorBlend.cs
- PageAsyncTaskManager.cs
- StrongNameMembershipCondition.cs
- ProfessionalColorTable.cs
- __TransparentProxy.cs
- LinearGradientBrush.cs
- TraceHwndHost.cs
- Closure.cs
- FileStream.cs
- Translator.cs
- MetadataCache.cs
- OdbcReferenceCollection.cs
- EventMap.cs
- GenericTextProperties.cs
- FixedSOMTable.cs
- CapabilitiesAssignment.cs
- CodeComment.cs
- XmlDesigner.cs
- SingleSelectRootGridEntry.cs
- ResourceFallbackManager.cs
- QuaternionAnimationUsingKeyFrames.cs
- TableRowCollection.cs
- XmlSerializer.cs
- Vector.cs
- ReadOnlyHierarchicalDataSourceView.cs
- cookiecontainer.cs
- Msmq4SubqueuePoisonHandler.cs
- ResizeGrip.cs
- PenThread.cs
- PolicyException.cs
- DefaultBinder.cs
- SafeEventLogWriteHandle.cs
- WebDisplayNameAttribute.cs
- IISUnsafeMethods.cs
- CoTaskMemHandle.cs
- ReadWriteSpinLock.cs
- FileDialog_Vista.cs
- ClassicBorderDecorator.cs
- CharConverter.cs
- View.cs
- FocusManager.cs
- _NTAuthentication.cs
- UserNameSecurityToken.cs
- TextContainerChangedEventArgs.cs
- UpdatePanelTriggerCollection.cs
- ListViewItem.cs
- Columns.cs
- AppDomainProtocolHandler.cs
- AttachmentService.cs
- XPathNodePointer.cs
- NameTable.cs
- BatchParser.cs
- AssociationTypeEmitter.cs
- GroupBox.cs
- XPathDocument.cs
- DbQueryCommandTree.cs
- XmlCDATASection.cs
- x509store.cs
- SoapInteropTypes.cs
- DataGridViewRowsAddedEventArgs.cs
- Environment.cs
- ObjectDataSourceMethodEventArgs.cs
- MultiAsyncResult.cs
- QilVisitor.cs
- ProvideValueServiceProvider.cs
- WindowsImpersonationContext.cs
- XmlSchemaAnnotated.cs
- DSASignatureDeformatter.cs
- Conditional.cs
- TwoPhaseCommit.cs
- Vector3DAnimationUsingKeyFrames.cs
- ListView.cs
- WorkflowDataContext.cs
- SafeFileMappingHandle.cs
- TypeDescriptor.cs
- Unit.cs
- DataBindingsDialog.cs
- FileInfo.cs
- CodeMethodReturnStatement.cs
- ExpressionValueEditor.cs
- FixedTextView.cs
- HMACSHA384.cs
- Triangle.cs
- Literal.cs
- SQLBytesStorage.cs
- LinqDataSourceValidationException.cs
- ProxySimple.cs
- CompositionTarget.cs
- TextMetrics.cs
- LockCookie.cs
- XPathNodeList.cs
- CodeTypeDeclaration.cs
- BindingListCollectionView.cs
- XmlCodeExporter.cs
- PermissionSetEnumerator.cs
- DrawingImage.cs
- ProtocolViolationException.cs
- DataGridViewSortCompareEventArgs.cs
- DataGrid.cs