Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / MonitoringDescriptionAttribute.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLMoney.cs
- RuntimeComponentFilter.cs
- UseAttributeSetsAction.cs
- ObjectAssociationEndMapping.cs
- TemplateInstanceAttribute.cs
- XmlDataDocument.cs
- EntityCommandExecutionException.cs
- ThrowHelper.cs
- DelegateSerializationHolder.cs
- HttpResponseInternalBase.cs
- DataGridViewEditingControlShowingEventArgs.cs
- EntityDataSourceMemberPath.cs
- RenderData.cs
- LocalizationComments.cs
- TableRowGroupCollection.cs
- Metadata.cs
- AccessedThroughPropertyAttribute.cs
- XmlSubtreeReader.cs
- XomlCompilerHelpers.cs
- MessageQueue.cs
- ProfileInfo.cs
- SafeCryptoHandles.cs
- DataBindingHandlerAttribute.cs
- CornerRadiusConverter.cs
- InvokeSchedule.cs
- RegexFCD.cs
- ExpressionBindingCollection.cs
- SmtpClient.cs
- OwnerDrawPropertyBag.cs
- ObjRef.cs
- StylusPlugInCollection.cs
- WorkflowTransactionService.cs
- ApplicationDirectoryMembershipCondition.cs
- OneWayElement.cs
- FormsIdentity.cs
- CodeDOMUtility.cs
- GridViewColumn.cs
- sqlstateclientmanager.cs
- XmlArrayItemAttributes.cs
- Int32RectValueSerializer.cs
- OutKeywords.cs
- ToolStripContentPanelRenderEventArgs.cs
- formatter.cs
- Hash.cs
- Configuration.cs
- MouseGestureConverter.cs
- InternalControlCollection.cs
- CodeIdentifiers.cs
- Aggregates.cs
- PagePropertiesChangingEventArgs.cs
- TransformedBitmap.cs
- Debugger.cs
- LinearGradientBrush.cs
- TableItemStyle.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TimeoutStream.cs
- StackSpiller.Temps.cs
- GraphicsContext.cs
- CorrelationTokenTypeConvertor.cs
- TabControlEvent.cs
- SocketElement.cs
- QueryContinueDragEventArgs.cs
- CheckBoxFlatAdapter.cs
- HotSpot.cs
- HtmlTextArea.cs
- TextOnlyOutput.cs
- ZipIOLocalFileHeader.cs
- SqlGatherProducedAliases.cs
- FilteredXmlReader.cs
- PublisherMembershipCondition.cs
- StreamUpdate.cs
- EventWaitHandle.cs
- TraceLevelStore.cs
- DataTableCollection.cs
- StorageBasedPackageProperties.cs
- CqlWriter.cs
- BindingMemberInfo.cs
- PermissionRequestEvidence.cs
- DataGridViewBindingCompleteEventArgs.cs
- Simplifier.cs
- BaseAsyncResult.cs
- PerformanceCounterLib.cs
- DataSpaceManager.cs
- CLRBindingWorker.cs
- ImageAutomationPeer.cs
- ClipboardData.cs
- EndEvent.cs
- Condition.cs
- ClaimTypes.cs
- TableLayoutPanelCellPosition.cs
- HandoffBehavior.cs
- XmlDataLoader.cs
- CodeValidator.cs
- EncryptRequest.cs
- List.cs
- TimeEnumHelper.cs
- XmlSiteMapProvider.cs
- XPathDocumentIterator.cs
- COAUTHINFO.cs
- FlowDecisionLabelFeature.cs