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
- IndexedString.cs
- ProgressBar.cs
- BitmapFrameEncode.cs
- BindingContext.cs
- XPathDescendantIterator.cs
- CSharpCodeProvider.cs
- PropertyRef.cs
- FileLogRecord.cs
- FileVersion.cs
- ConfigurationLocation.cs
- ChangeTracker.cs
- KoreanLunisolarCalendar.cs
- SplitterPanelDesigner.cs
- XsltContext.cs
- ObjectContext.cs
- Literal.cs
- ReflectTypeDescriptionProvider.cs
- DropShadowBitmapEffect.cs
- SigningCredentials.cs
- TypeCodeDomSerializer.cs
- EntityCommandDefinition.cs
- ImageIndexConverter.cs
- EndpointDiscoveryElement.cs
- ColorContext.cs
- ListMarkerLine.cs
- Rectangle.cs
- TraceHandlerErrorFormatter.cs
- PersonalizableAttribute.cs
- Brushes.cs
- ProviderConnectionPointCollection.cs
- RepeatInfo.cs
- HtmlContainerControl.cs
- LocationSectionRecord.cs
- SqlPersonalizationProvider.cs
- SmtpDigestAuthenticationModule.cs
- CustomActivityDesigner.cs
- FileInfo.cs
- FileLevelControlBuilderAttribute.cs
- BeginStoryboard.cs
- ISAPIRuntime.cs
- SerializerDescriptor.cs
- wmiprovider.cs
- SrgsSubset.cs
- DefaultValidator.cs
- DeviceContext2.cs
- DataListItemCollection.cs
- ResXResourceReader.cs
- SmiTypedGetterSetter.cs
- IteratorFilter.cs
- ImageInfo.cs
- EncodingInfo.cs
- MediaSystem.cs
- BodyGlyph.cs
- XmlChildNodes.cs
- DrawingContext.cs
- DSASignatureFormatter.cs
- MimeBasePart.cs
- ItemContainerGenerator.cs
- Latin1Encoding.cs
- DetailsViewPageEventArgs.cs
- CodeActivityMetadata.cs
- ReadOnlyPropertyMetadata.cs
- DataGrid.cs
- SQLInt64Storage.cs
- OutgoingWebResponseContext.cs
- MessageFilterException.cs
- WorkflowMarkupSerializerMapping.cs
- Annotation.cs
- ListViewItem.cs
- WindowsTitleBar.cs
- ListViewGroupItemCollection.cs
- ContextStack.cs
- Oid.cs
- Interop.cs
- DbConnectionOptions.cs
- DataGridTableCollection.cs
- Token.cs
- StrongBox.cs
- SecUtil.cs
- BrowserCapabilitiesCodeGenerator.cs
- TimeoutException.cs
- DiagnosticTraceSchemas.cs
- FilterFactory.cs
- BrushProxy.cs
- Boolean.cs
- XmlBufferedByteStreamReader.cs
- Registry.cs
- CodeNamespace.cs
- SecurityPermission.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- WindowsSpinner.cs
- FilterElement.cs
- RTTrackingProfile.cs
- BaseCodeDomTreeGenerator.cs
- ExpressionBindingsDialog.cs
- TextEditorLists.cs
- HotSpotCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- TemplateColumn.cs
- InstalledFontCollection.cs