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
- Helper.cs
- DrawListViewSubItemEventArgs.cs
- LicenseContext.cs
- AccessDataSourceView.cs
- DataGridViewControlCollection.cs
- ThreadAttributes.cs
- AvTraceDetails.cs
- CodeMethodInvokeExpression.cs
- FormsAuthenticationUserCollection.cs
- Misc.cs
- HttpResponse.cs
- DBProviderConfigurationHandler.cs
- MetadataItemCollectionFactory.cs
- DiscoveryMessageSequenceGenerator.cs
- Debug.cs
- DBSchemaRow.cs
- PointAnimation.cs
- xml.cs
- FixedSchema.cs
- FigureHelper.cs
- Utils.cs
- EventLogPermissionEntry.cs
- ImageFormat.cs
- ByteStreamGeometryContext.cs
- DbProviderFactoriesConfigurationHandler.cs
- AsyncOperationLifetimeManager.cs
- CollectionExtensions.cs
- CryptoApi.cs
- X509UI.cs
- InputManager.cs
- OleDbMetaDataFactory.cs
- SplayTreeNode.cs
- MessageEncoderFactory.cs
- SHA256Cng.cs
- OpenTypeMethods.cs
- EdmPropertyAttribute.cs
- DiffuseMaterial.cs
- BounceEase.cs
- CalendarBlackoutDatesCollection.cs
- SecurityManager.cs
- ToolBar.cs
- _Connection.cs
- LayeredChannelFactory.cs
- SuppressIldasmAttribute.cs
- ParameterToken.cs
- TokenBasedSet.cs
- EntityContainerEntitySetDefiningQuery.cs
- NamedPermissionSet.cs
- XpsS0ValidatingLoader.cs
- EnumConverter.cs
- LocalizationComments.cs
- Calendar.cs
- TrimSurroundingWhitespaceAttribute.cs
- ClosableStream.cs
- DrawingContextWalker.cs
- HttpHeaderCollection.cs
- ChannelToken.cs
- ScrollItemPattern.cs
- SqlBooleanMismatchVisitor.cs
- ProfilePropertyMetadata.cs
- RegexRunner.cs
- UserControlDocumentDesigner.cs
- LocalIdKeyIdentifierClause.cs
- LinqDataSourceValidationException.cs
- _TLSstream.cs
- validation.cs
- CodeDirectiveCollection.cs
- IpcChannel.cs
- IPHostEntry.cs
- XmlSchemaSubstitutionGroup.cs
- FormsAuthentication.cs
- Axis.cs
- DataBinding.cs
- EventLog.cs
- DateTimeConstantAttribute.cs
- BindingCollection.cs
- PositiveTimeSpanValidatorAttribute.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- PathStreamGeometryContext.cs
- CalculatedColumn.cs
- AmbientProperties.cs
- CssStyleCollection.cs
- RegexRunnerFactory.cs
- CalendarButtonAutomationPeer.cs
- ExpressionBuilderCollection.cs
- GraphicsState.cs
- RawStylusInputCustomDataList.cs
- PingOptions.cs
- ConfigurationStrings.cs
- PropertyChangingEventArgs.cs
- PropertyTabAttribute.cs
- XPathChildIterator.cs
- CachedRequestParams.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- UpdatableWrapper.cs
- TemplateBamlTreeBuilder.cs
- InvariantComparer.cs
- Panel.cs
- SiteIdentityPermission.cs
- ControlParameter.cs