Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- PlainXmlWriter.cs
- XmlSchemaProviderAttribute.cs
- SqlReorderer.cs
- DeferredElementTreeState.cs
- ColorBuilder.cs
- ComponentFactoryHelpers.cs
- SendingRequestEventArgs.cs
- EtwTrace.cs
- PipelineModuleStepContainer.cs
- IISUnsafeMethods.cs
- ConfigurationStrings.cs
- ValueProviderWrapper.cs
- Ops.cs
- ServerValidateEventArgs.cs
- HtmlValidatorAdapter.cs
- XPathDocumentBuilder.cs
- RotateTransform3D.cs
- XmlWellformedWriter.cs
- SingleKeyFrameCollection.cs
- SerializationStore.cs
- GridPatternIdentifiers.cs
- OneOfScalarConst.cs
- ProfileGroupSettingsCollection.cs
- HtmlAnchor.cs
- TextCollapsingProperties.cs
- GridViewSortEventArgs.cs
- GeneralTransformGroup.cs
- HuffmanTree.cs
- RadioButton.cs
- SymmetricKeyWrap.cs
- OpenFileDialog.cs
- ToolStripItemClickedEventArgs.cs
- HighlightComponent.cs
- WebPartHeaderCloseVerb.cs
- ExceptionRoutedEventArgs.cs
- ViewStateModeByIdAttribute.cs
- Control.cs
- XmlSecureResolver.cs
- FSWPathEditor.cs
- MailAddressCollection.cs
- FileDialog.cs
- XmlNodeChangedEventArgs.cs
- RectAnimation.cs
- TemplatePropertyEntry.cs
- CommandHelper.cs
- SqlLiftIndependentRowExpressions.cs
- DaylightTime.cs
- QueryStringParameter.cs
- UnionCodeGroup.cs
- XslAstAnalyzer.cs
- TransformPatternIdentifiers.cs
- UserControlBuildProvider.cs
- TextDecorationLocationValidation.cs
- StreamGeometryContext.cs
- XmlRawWriter.cs
- Compress.cs
- TextBoxAutomationPeer.cs
- TableProviderWrapper.cs
- PropertyGridView.cs
- AlphabeticalEnumConverter.cs
- dsa.cs
- CustomCredentialPolicy.cs
- XmlLanguageConverter.cs
- HMACMD5.cs
- SetIterators.cs
- Queue.cs
- MergePropertyDescriptor.cs
- RegularExpressionValidator.cs
- hwndwrapper.cs
- XmlSerializerAssemblyAttribute.cs
- SafeReversePInvokeHandle.cs
- arclist.cs
- XPathAncestorIterator.cs
- TreeViewAutomationPeer.cs
- RestClientProxyHandler.cs
- CommandValueSerializer.cs
- TimeSpanMinutesConverter.cs
- DetailsViewRow.cs
- Timer.cs
- RuleSettingsCollection.cs
- SoapIncludeAttribute.cs
- GeneralTransform3D.cs
- EmptyStringExpandableObjectConverter.cs
- EncoderNLS.cs
- DecimalConstantAttribute.cs
- Shape.cs
- NativeMethods.cs
- SamlAttribute.cs
- ServiceBehaviorElement.cs
- ErrorBehavior.cs
- CommandHelpers.cs
- SingleAnimationBase.cs
- PointHitTestParameters.cs
- CompositeControl.cs
- NoResizeHandleGlyph.cs
- OdbcPermission.cs
- GlyphRun.cs
- SoapEnumAttribute.cs
- RestClientProxyHandler.cs
- EnvelopedPkcs7.cs