Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QueryPageSettingsEventArgs.cs
- ManagedFilter.cs
- ResolveNextArgumentWorkItem.cs
- AddInToken.cs
- XmlSerializationWriter.cs
- ConstructorExpr.cs
- IndexingContentUnit.cs
- ImageButton.cs
- MetadataArtifactLoaderComposite.cs
- ComboBox.cs
- RuleInfoComparer.cs
- ScrollEvent.cs
- ProtocolViolationException.cs
- ProjectionAnalyzer.cs
- NavigationWindow.cs
- ProxyGenerationError.cs
- DisposableCollectionWrapper.cs
- DataGridCell.cs
- NonParentingControl.cs
- WinOEToolBoxItem.cs
- SafeThreadHandle.cs
- ComponentChangedEvent.cs
- SafeFileHandle.cs
- DesignOnlyAttribute.cs
- StateChangeEvent.cs
- MultipartIdentifier.cs
- PassportAuthenticationModule.cs
- TreeView.cs
- FileSystemWatcher.cs
- Camera.cs
- XmlHelper.cs
- HtmlToClrEventProxy.cs
- LinqDataSourceStatusEventArgs.cs
- ParamArrayAttribute.cs
- DataGridViewComboBoxEditingControl.cs
- StructuredProperty.cs
- RadioButtonRenderer.cs
- BevelBitmapEffect.cs
- PhysicalOps.cs
- WindowsAuthenticationEventArgs.cs
- TrackingStringDictionary.cs
- SettingsProviderCollection.cs
- EventListener.cs
- DefaultHttpHandler.cs
- XmlSiteMapProvider.cs
- RuleAttributes.cs
- HtmlTableCellCollection.cs
- ErrorView.xaml.cs
- EventWaitHandleSecurity.cs
- Membership.cs
- NumberEdit.cs
- ShapeTypeface.cs
- NamespaceListProperty.cs
- ToolBarOverflowPanel.cs
- JpegBitmapDecoder.cs
- TreeView.cs
- XmlTextReaderImpl.cs
- CompiledXpathExpr.cs
- PenThread.cs
- FontUnitConverter.cs
- TextBox.cs
- MenuBase.cs
- MasterPage.cs
- PtsHelper.cs
- XmlArrayItemAttributes.cs
- LabelAutomationPeer.cs
- XmlILStorageConverter.cs
- DesignerOptionService.cs
- Expr.cs
- SamlAuthorizationDecisionStatement.cs
- NotSupportedException.cs
- XPathCompileException.cs
- PixelFormat.cs
- Cursors.cs
- Configuration.cs
- TableLayout.cs
- HttpStreamXmlDictionaryWriter.cs
- ListViewGroupCollectionEditor.cs
- __Filters.cs
- FixedSOMPage.cs
- MarginsConverter.cs
- CodeDomSerializer.cs
- DBCommandBuilder.cs
- ChannelServices.cs
- PublisherMembershipCondition.cs
- SynchronizedReadOnlyCollection.cs
- SystemException.cs
- ADConnectionHelper.cs
- ResourceContainer.cs
- ArrayElementGridEntry.cs
- UpdatePanelTriggerCollection.cs
- StateItem.cs
- HttpProcessUtility.cs
- SqlReferenceCollection.cs
- HandlerWithFactory.cs
- FixedDSBuilder.cs
- SafeTokenHandle.cs
- ResourceProperty.cs
- MoveSizeWinEventHandler.cs
- ReflectionServiceProvider.cs