Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- UrlPath.cs
- CompareInfo.cs
- TranslateTransform.cs
- CompilationPass2TaskInternal.cs
- ParserStack.cs
- UInt16Storage.cs
- TemplatedWizardStep.cs
- RowUpdatingEventArgs.cs
- BaseConfigurationRecord.cs
- TextEvent.cs
- SQLGuidStorage.cs
- RichTextBox.cs
- ConfigurationCollectionAttribute.cs
- MenuAdapter.cs
- GeneralTransform.cs
- Normalization.cs
- ShaderRenderModeValidation.cs
- StylusButtonCollection.cs
- OleDbError.cs
- StandardToolWindows.cs
- Size3DConverter.cs
- XPathNavigatorKeyComparer.cs
- Registry.cs
- TraceContextEventArgs.cs
- SqlDataSourceTableQuery.cs
- AsyncStreamReader.cs
- UIElement3D.cs
- Panel.cs
- ActiveDocumentEvent.cs
- InputBuffer.cs
- CriticalFileToken.cs
- Mappings.cs
- SafeFileMappingHandle.cs
- ActivationArguments.cs
- BufferBuilder.cs
- ErrorHandlerModule.cs
- WebPartDescriptionCollection.cs
- XmlFormatExtensionPrefixAttribute.cs
- SecurityDescriptor.cs
- AuthenticationService.cs
- LinqDataSourceContextEventArgs.cs
- EnumDataContract.cs
- EmbeddedMailObject.cs
- StateManagedCollection.cs
- TaskFactory.cs
- PrivilegeNotHeldException.cs
- AnnotationHelper.cs
- TextParagraphView.cs
- StreamingContext.cs
- XmlSecureResolver.cs
- GenericIdentity.cs
- DataGridViewColumnHeaderCell.cs
- DynamicQueryableWrapper.cs
- Light.cs
- CheckoutException.cs
- OverrideMode.cs
- SetterBaseCollection.cs
- WinEventQueueItem.cs
- CodeNamespaceImport.cs
- SQLInt64Storage.cs
- SchemaContext.cs
- GridLengthConverter.cs
- AssemblyResourceLoader.cs
- SqlCacheDependency.cs
- SqlVersion.cs
- StatusBarAutomationPeer.cs
- HttpConfigurationContext.cs
- LinqDataSourceUpdateEventArgs.cs
- EUCJPEncoding.cs
- DialogResultConverter.cs
- TabItemWrapperAutomationPeer.cs
- DateTimeConstantAttribute.cs
- DBBindings.cs
- ListView.cs
- ResXFileRef.cs
- TabletCollection.cs
- Funcletizer.cs
- ClientBuildManager.cs
- SqlStatistics.cs
- InputLanguage.cs
- DrawToolTipEventArgs.cs
- TimeStampChecker.cs
- SamlAdvice.cs
- WaitForChangedResult.cs
- MsmqIntegrationOutputChannel.cs
- Journal.cs
- _IPv6Address.cs
- WmpBitmapEncoder.cs
- CopyAttributesAction.cs
- _NestedSingleAsyncResult.cs
- BitmapImage.cs
- DefaultTraceListener.cs
- SiteMapProvider.cs
- SpotLight.cs
- StructuralObject.cs
- OutputCacheSettings.cs
- DiffuseMaterial.cs
- Nodes.cs
- ResourcePart.cs
- ProfilePropertyNameValidator.cs