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
- HttpModulesSection.cs
- AttributeUsageAttribute.cs
- SHA256.cs
- ExpressionBindings.cs
- SiteMapNode.cs
- Debug.cs
- AccessibleObject.cs
- KernelTypeValidation.cs
- FormViewInsertedEventArgs.cs
- InkCanvasAutomationPeer.cs
- DataGridViewCellCancelEventArgs.cs
- MenuItemStyle.cs
- SoundPlayerAction.cs
- HitTestWithPointDrawingContextWalker.cs
- Dictionary.cs
- XmlKeywords.cs
- XmlUtil.cs
- ToolStripComboBox.cs
- FileAccessException.cs
- PageSettings.cs
- Triangle.cs
- SingleAnimationUsingKeyFrames.cs
- CodeTypeMember.cs
- CheckedPointers.cs
- RuntimeEnvironment.cs
- DateTimeConstantAttribute.cs
- HttpCapabilitiesEvaluator.cs
- AppModelKnownContentFactory.cs
- ObjectDataSourceMethodEventArgs.cs
- GeometryModel3D.cs
- WizardPanel.cs
- ObjectDataSource.cs
- MissingFieldException.cs
- ArithmeticException.cs
- SqlDataSourceSelectingEventArgs.cs
- SubtreeProcessor.cs
- URLAttribute.cs
- UntrustedRecipientException.cs
- RowToParametersTransformer.cs
- LinqDataSource.cs
- ParserHooks.cs
- TrailingSpaceComparer.cs
- StylusPointDescription.cs
- Schedule.cs
- TextBoxAutomationPeer.cs
- LocalIdKeyIdentifierClause.cs
- XamlBuildProvider.cs
- KoreanLunisolarCalendar.cs
- HyperLinkField.cs
- PlatformCulture.cs
- ToolStripItemTextRenderEventArgs.cs
- DelegatingConfigHost.cs
- ParameterRetriever.cs
- HTTPNotFoundHandler.cs
- TextSelectionHelper.cs
- AnnotationAdorner.cs
- FontCacheUtil.cs
- Identifier.cs
- ClipboardData.cs
- CommandValueSerializer.cs
- DescendantQuery.cs
- XmlSchemaAttributeGroupRef.cs
- GradientBrush.cs
- GridView.cs
- HashAlgorithm.cs
- ReadOnlyObservableCollection.cs
- MembershipUser.cs
- XPathScanner.cs
- AutoSizeToolBoxItem.cs
- ThreadWorkerController.cs
- SupportingTokenAuthenticatorSpecification.cs
- OnOperation.cs
- EventManager.cs
- MaterialGroup.cs
- WSHttpTransportSecurityElement.cs
- SoapReflector.cs
- util.cs
- COM2Properties.cs
- Deflater.cs
- KoreanLunisolarCalendar.cs
- ActiveXSerializer.cs
- IdSpace.cs
- XmlObjectSerializerWriteContextComplex.cs
- Operand.cs
- BitmapEncoder.cs
- SiteOfOriginContainer.cs
- DataSourceSerializationException.cs
- ProxyManager.cs
- CodeAssignStatement.cs
- DataGridItem.cs
- NetworkInterface.cs
- CapabilitiesState.cs
- SqlPersonalizationProvider.cs
- metrodevice.cs
- ObjectQuery_EntitySqlExtensions.cs
- ServerProtocol.cs
- CultureInfo.cs
- ActivityExecutor.cs
- CommonDialog.cs
- TranslateTransform3D.cs