Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / MessagingDescriptionAttribute.cs / 1305376 / MessagingDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System; using System.ComponentModel; using System.Security.Permissions; ////// /// DescriptionAttribute marks a property, event, or extender with a /// description. Visual designers can display this description when referencing /// the member. /// [AttributeUsage(AttributeTargets.All)] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")] public class MessagingDescriptionAttribute : DescriptionAttribute { private bool replaced = false; ////// /// Constructs a new sys description. /// public MessagingDescriptionAttribute(string description) : base(description) { } ////// /// Retrieves the description text. /// public override string Description { [HostProtection(SharedState = true)] // DescriptionAttribute uses SharedState=true. We should not change base's behavior get { if (!replaced) { replaced = true; DescriptionValue = Res.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
- DragStartedEventArgs.cs
- AdvancedBindingPropertyDescriptor.cs
- XmlSchemaAnyAttribute.cs
- JavaScriptSerializer.cs
- AnimatedTypeHelpers.cs
- HttpPostedFile.cs
- SqlMethodTransformer.cs
- SerializationAttributes.cs
- SoapServerMethod.cs
- precedingsibling.cs
- TransformGroup.cs
- _ConnectionGroup.cs
- DesignerObject.cs
- UnsafeCollabNativeMethods.cs
- MethodExpr.cs
- CommandConverter.cs
- WorkflowApplicationIdleEventArgs.cs
- autovalidator.cs
- WindowsTab.cs
- ElementAction.cs
- COM2PictureConverter.cs
- UrlMappingsSection.cs
- BitmapEffectrendercontext.cs
- KeySpline.cs
- WebPartRestoreVerb.cs
- httpserverutility.cs
- MatrixTransform3D.cs
- ErrorItem.cs
- EntityContainerEntitySetDefiningQuery.cs
- UIElementParagraph.cs
- EUCJPEncoding.cs
- baseshape.cs
- SkinBuilder.cs
- RootProfilePropertySettingsCollection.cs
- CaseStatement.cs
- DataGridViewColumnCollection.cs
- ExpressionBuilderCollection.cs
- SafeNativeMethodsCLR.cs
- ValidationErrorCollection.cs
- sqlmetadatafactory.cs
- TextRunProperties.cs
- MimeFormatter.cs
- DisableDpiAwarenessAttribute.cs
- Delegate.cs
- HScrollProperties.cs
- TrustLevelCollection.cs
- SiteMapDataSourceView.cs
- LiteralTextParser.cs
- OutputCacheSettings.cs
- CounterSetInstance.cs
- DataServiceException.cs
- XMLDiffLoader.cs
- AppendHelper.cs
- MonitorWrapper.cs
- RecognitionResult.cs
- HtmlMeta.cs
- X509UI.cs
- UserPreferenceChangedEventArgs.cs
- ItemAutomationPeer.cs
- DataList.cs
- CredentialCache.cs
- PrinterSettings.cs
- Attributes.cs
- Wildcard.cs
- PenCursorManager.cs
- UnsafeNativeMethods.cs
- ThicknessKeyFrameCollection.cs
- BamlVersionHeader.cs
- DiagnosticsConfigurationHandler.cs
- InstanceData.cs
- ImageListStreamer.cs
- FreezableCollection.cs
- FamilyCollection.cs
- ComponentResourceKeyConverter.cs
- InternalConfigSettingsFactory.cs
- WmpBitmapDecoder.cs
- SerialPinChanges.cs
- TextWriter.cs
- ItemCheckedEvent.cs
- GeneratedContractType.cs
- PageThemeParser.cs
- DataGridTablesFactory.cs
- SqlGenerator.cs
- ProfileManager.cs
- AnnotationAdorner.cs
- CharacterMetrics.cs
- WebServiceClientProxyGenerator.cs
- SeekableReadStream.cs
- Size3DValueSerializer.cs
- HMACRIPEMD160.cs
- Model3DCollection.cs
- SpeechDetectedEventArgs.cs
- SystemKeyConverter.cs
- ActivityDefaults.cs
- Stack.cs
- Walker.cs
- ResXResourceWriter.cs
- WindowProviderWrapper.cs
- DLinqDataModelProvider.cs
- ClientSettingsProvider.cs