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
- WebErrorHandler.cs
- SchemaAttDef.cs
- ExpandButtonVisibilityConverter.cs
- TreeNodeBinding.cs
- FixedSOMTableRow.cs
- FigureHelper.cs
- DescendantQuery.cs
- HtmlToClrEventProxy.cs
- Maps.cs
- FilteredAttributeCollection.cs
- DelayedRegex.cs
- WebBrowsableAttribute.cs
- UserControlCodeDomTreeGenerator.cs
- StrongNameMembershipCondition.cs
- StyleBamlTreeBuilder.cs
- ExternalFile.cs
- TextFormatter.cs
- CodeMemberEvent.cs
- XsltConvert.cs
- ErrorTableItemStyle.cs
- OuterGlowBitmapEffect.cs
- SourceSwitch.cs
- Queue.cs
- RootDesignerSerializerAttribute.cs
- FieldNameLookup.cs
- Activation.cs
- EditorAttributeInfo.cs
- DetailsViewRow.cs
- HelpKeywordAttribute.cs
- Model3DGroup.cs
- ApplicationSecurityManager.cs
- HttpWriter.cs
- UnsafeNativeMethods.cs
- AutomationIdentifier.cs
- TCPClient.cs
- MembershipPasswordException.cs
- MailWriter.cs
- PartDesigner.cs
- MulticastNotSupportedException.cs
- ToolStripItemClickedEventArgs.cs
- XmlFormatReaderGenerator.cs
- OleDbRowUpdatedEvent.cs
- ParseElement.cs
- DataGridCell.cs
- ResXResourceReader.cs
- EventRoute.cs
- FactoryRecord.cs
- Merger.cs
- BaseInfoTable.cs
- MediaContextNotificationWindow.cs
- TypefaceCollection.cs
- SqlClientMetaDataCollectionNames.cs
- XmlComment.cs
- NamespaceEmitter.cs
- TokenBasedSetEnumerator.cs
- WebResourceAttribute.cs
- CorePropertiesFilter.cs
- IntranetCredentialPolicy.cs
- Transform.cs
- WebPartUserCapability.cs
- FragmentQueryKB.cs
- BinaryReader.cs
- ColumnResizeAdorner.cs
- CompareValidator.cs
- PropertyItemInternal.cs
- ComponentConverter.cs
- CharacterBufferReference.cs
- GradientBrush.cs
- OdbcConnectionStringbuilder.cs
- ApplicationInfo.cs
- WrappedKeySecurityTokenParameters.cs
- TrackingServices.cs
- ListViewItem.cs
- Sql8ConformanceChecker.cs
- ArglessEventHandlerProxy.cs
- SQLChars.cs
- WebPartMenu.cs
- AuthStoreRoleProvider.cs
- DefaultPropertyAttribute.cs
- StatusBarPanel.cs
- UnaryNode.cs
- RoleGroupCollection.cs
- BCLDebug.cs
- GenericXmlSecurityToken.cs
- TypeExtensions.cs
- VScrollBar.cs
- TextEditorContextMenu.cs
- SchemaImporterExtensionElementCollection.cs
- SQLMembershipProvider.cs
- FontWeight.cs
- ViewStateModeByIdAttribute.cs
- NotificationContext.cs
- KeyEventArgs.cs
- ConnectionsZoneDesigner.cs
- ToolStripDropDownItem.cs
- XmlElement.cs
- ErrorEventArgs.cs
- CustomCredentialPolicy.cs
- XmlSerializableReader.cs
- SingleAnimation.cs