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
- TextBounds.cs
- Mapping.cs
- KeyEventArgs.cs
- Util.cs
- __Filters.cs
- DependencyObjectType.cs
- ScopelessEnumAttribute.cs
- WhiteSpaceTrimStringConverter.cs
- DependencyPropertyDescriptor.cs
- WebPartConnectionsConfigureVerb.cs
- GeneralTransform3D.cs
- ProcessHost.cs
- indexingfiltermarshaler.cs
- CommandCollectionEditor.cs
- PtsPage.cs
- SoapAttributes.cs
- SchemeSettingElementCollection.cs
- LongCountAggregationOperator.cs
- BindMarkupExtensionSerializer.cs
- WebPartConnectionsDisconnectVerb.cs
- DataExpression.cs
- SoapIncludeAttribute.cs
- ImageDrawing.cs
- HttpRequestCacheValidator.cs
- IsolatedStoragePermission.cs
- GeneralTransform.cs
- StylusSystemGestureEventArgs.cs
- LicenseProviderAttribute.cs
- StreamDocument.cs
- BinHexDecoder.cs
- Positioning.cs
- Group.cs
- HtmlEncodedRawTextWriter.cs
- DataBoundLiteralControl.cs
- LinqDataSourceInsertEventArgs.cs
- SliderAutomationPeer.cs
- BaseTemplateBuildProvider.cs
- TypeUtils.cs
- PageStatePersister.cs
- SizeF.cs
- DigitalSignature.cs
- HttpResponseInternalWrapper.cs
- SchemaNames.cs
- HttpHandlerActionCollection.cs
- Calendar.cs
- StringTraceRecord.cs
- NetworkInterface.cs
- IndentedWriter.cs
- SafeCertificateStore.cs
- RegexRunner.cs
- StoragePropertyMapping.cs
- DataGridViewCellConverter.cs
- Content.cs
- ResourcesChangeInfo.cs
- WindowsListView.cs
- DynamicRenderer.cs
- LiteralSubsegment.cs
- ResourceIDHelper.cs
- InvokePattern.cs
- _NetRes.cs
- QuotedPairReader.cs
- ADConnectionHelper.cs
- UnaryExpression.cs
- Rotation3D.cs
- OleDbRowUpdatedEvent.cs
- XPathNodeHelper.cs
- Decorator.cs
- OleDbParameter.cs
- DataFormats.cs
- QueryInterceptorAttribute.cs
- BufferedWebEventProvider.cs
- SafeRegistryKey.cs
- AuthenticationManager.cs
- Geometry.cs
- IntegrationExceptionEventArgs.cs
- UIntPtr.cs
- DataGridItemEventArgs.cs
- ObjectManager.cs
- ToolStripDesignerAvailabilityAttribute.cs
- CmsInterop.cs
- IsolatedStorageFilePermission.cs
- DetailsViewPageEventArgs.cs
- Subtree.cs
- TextRunProperties.cs
- StylusPlugInCollection.cs
- IdentitySection.cs
- _ChunkParse.cs
- MetadataUtilsSmi.cs
- MapPathBasedVirtualPathProvider.cs
- XmlAnyAttributeAttribute.cs
- GenericTransactionFlowAttribute.cs
- UmAlQuraCalendar.cs
- UndirectedGraph.cs
- Empty.cs
- XmlBoundElement.cs
- ObjectSecurity.cs
- COMException.cs
- ConstraintEnumerator.cs
- EventEntry.cs
- CompressEmulationStream.cs