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
- XmlCharCheckingReader.cs
- DSASignatureFormatter.cs
- HTMLTagNameToTypeMapper.cs
- NativeMethods.cs
- ScrollData.cs
- ParseNumbers.cs
- CuspData.cs
- ComboBoxRenderer.cs
- BrowserDefinition.cs
- ToolStripScrollButton.cs
- CapabilitiesUse.cs
- TextPointer.cs
- SerialErrors.cs
- Matrix3D.cs
- SoapIgnoreAttribute.cs
- CodeTypeOfExpression.cs
- PropertyCondition.cs
- OdbcPermission.cs
- hresults.cs
- MachineKeyConverter.cs
- CqlErrorHelper.cs
- OdbcEnvironmentHandle.cs
- JoinTreeSlot.cs
- LabelDesigner.cs
- DataServiceHost.cs
- DefaultPropertiesToSend.cs
- XmlSortKeyAccumulator.cs
- DataObjectAttribute.cs
- AutomationPropertyInfo.cs
- InstalledFontCollection.cs
- ClientOptions.cs
- SplitterPanelDesigner.cs
- TabControl.cs
- CaseStatementProjectedSlot.cs
- Validator.cs
- TextServicesHost.cs
- NetTcpBinding.cs
- StringConcat.cs
- Container.cs
- DelimitedListTraceListener.cs
- CommandConverter.cs
- ButtonChrome.cs
- ContentIterators.cs
- EncryptedReference.cs
- ListDataBindEventArgs.cs
- TraceSource.cs
- XslAst.cs
- SQLMoneyStorage.cs
- PaginationProgressEventArgs.cs
- TreeViewImageIndexConverter.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- __Error.cs
- OdbcException.cs
- RuleInfoComparer.cs
- DataGridViewRow.cs
- SettingsProviderCollection.cs
- TriggerActionCollection.cs
- LocationReferenceEnvironment.cs
- WSFederationHttpSecurityMode.cs
- CategoryValueConverter.cs
- SortedDictionary.cs
- SwitchElementsCollection.cs
- LiteralDesigner.cs
- ComAdminInterfaces.cs
- ScrollData.cs
- JournalEntry.cs
- GuidConverter.cs
- WebControlsSection.cs
- SolidColorBrush.cs
- ModelVisual3D.cs
- DPTypeDescriptorContext.cs
- BaseComponentEditor.cs
- LicenseContext.cs
- WorkflowStateRollbackService.cs
- EventLogLink.cs
- ScriptIgnoreAttribute.cs
- RadialGradientBrush.cs
- Function.cs
- XamlGridLengthSerializer.cs
- SystemIPGlobalStatistics.cs
- FastEncoder.cs
- FileDialog.cs
- RtfToken.cs
- CodeNamespace.cs
- MatrixTransform.cs
- XmlDocument.cs
- sqlstateclientmanager.cs
- SafeLibraryHandle.cs
- InheritablePropertyChangeInfo.cs
- TableRowGroup.cs
- SiteMapDataSource.cs
- LOSFormatter.cs
- TraceListener.cs
- PageThemeCodeDomTreeGenerator.cs
- PagePropertiesChangingEventArgs.cs
- PathStreamGeometryContext.cs
- BaseDataListComponentEditor.cs
- NullReferenceException.cs
- DataSetViewSchema.cs
- NegatedConstant.cs