Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / WebSysDisplayNameAttribute.cs / 1 / WebSysDisplayNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web { using System; using System.ComponentModel; ////// DisplayNameAttribute marks a property, event, or extender with a /// DisplayName. Visual designers can display this DisplayName when referencing /// the member. /// [AttributeUsage(AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Class)] internal sealed class WebSysDisplayNameAttribute : DisplayNameAttribute { private bool replaced; ////// internal WebSysDisplayNameAttribute(string DisplayName) : base(DisplayName) { } ///Constructs a new sys DisplayName. ////// public override string DisplayName { get { if (!replaced) { replaced = true; DisplayNameValue = SR.GetString(base.DisplayName); } return base.DisplayName; } } public override object TypeId { get { return typeof(DisplayNameAttribute); } } } }Retrieves the DisplayName text. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataMemberFieldConverter.cs
- ResourceDescriptionAttribute.cs
- VirtualPathUtility.cs
- CodeMemberField.cs
- PathFigureCollection.cs
- MetadataHelper.cs
- ControlsConfig.cs
- SQLMoney.cs
- CompilerWrapper.cs
- SchemaObjectWriter.cs
- HttpClientChannel.cs
- ActivityStateRecord.cs
- Helpers.cs
- CqlQuery.cs
- EntityUtil.cs
- _DisconnectOverlappedAsyncResult.cs
- ToolStripItemTextRenderEventArgs.cs
- SmtpCommands.cs
- EntityStoreSchemaFilterEntry.cs
- FixedPageAutomationPeer.cs
- CounterCreationDataCollection.cs
- DataListItemEventArgs.cs
- ResourceSet.cs
- AccessDataSourceDesigner.cs
- FontDialog.cs
- ObjectStorage.cs
- AppDomainUnloadedException.cs
- MultiTouchSystemGestureLogic.cs
- SQLMoney.cs
- CacheOutputQuery.cs
- ICspAsymmetricAlgorithm.cs
- CqlParserHelpers.cs
- Descriptor.cs
- TableCellCollection.cs
- CachedBitmap.cs
- DataGrid.cs
- Attributes.cs
- DatatypeImplementation.cs
- TextTreeDeleteContentUndoUnit.cs
- WebBrowserNavigatedEventHandler.cs
- DecimalKeyFrameCollection.cs
- OdbcPermission.cs
- InkCanvasInnerCanvas.cs
- WrappedIUnknown.cs
- DefaultShape.cs
- HttpModule.cs
- SqlServices.cs
- _PooledStream.cs
- NameTable.cs
- CollectionChangeEventArgs.cs
- CheckBox.cs
- FtpRequestCacheValidator.cs
- GridPattern.cs
- WebEvents.cs
- WarningException.cs
- DataGridViewLayoutData.cs
- BatchParser.cs
- LinearKeyFrames.cs
- DataGridPageChangedEventArgs.cs
- ActiveDocumentEvent.cs
- SoapCommonClasses.cs
- AccessedThroughPropertyAttribute.cs
- StreamHelper.cs
- DockAndAnchorLayout.cs
- SafeCertificateStore.cs
- WaitForChangedResult.cs
- PkcsMisc.cs
- SwitchLevelAttribute.cs
- TextAnchor.cs
- XmlNullResolver.cs
- QueryResultOp.cs
- ProtectedConfigurationSection.cs
- TracedNativeMethods.cs
- ValidatorUtils.cs
- RequestChannel.cs
- InvalidPrinterException.cs
- SubclassTypeValidator.cs
- CompositeTypefaceMetrics.cs
- NameObjectCollectionBase.cs
- TrayIconDesigner.cs
- cookiecollection.cs
- GPPOINTF.cs
- FixedSOMTextRun.cs
- DataBoundLiteralControl.cs
- NotImplementedException.cs
- XmlSchemaAttributeGroupRef.cs
- ConnectivityStatus.cs
- MonthCalendar.cs
- ToolboxItemSnapLineBehavior.cs
- WindowsRichEditRange.cs
- BitmapEffect.cs
- UIHelper.cs
- ObjectFullSpanRewriter.cs
- AlphaSortedEnumConverter.cs
- CustomError.cs
- ContentDesigner.cs
- DecoderNLS.cs
- ParentQuery.cs
- PointLight.cs
- BorderGapMaskConverter.cs