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
- Types.cs
- CodeSnippetTypeMember.cs
- SchemaTypeEmitter.cs
- SqlCharStream.cs
- TextElementEnumerator.cs
- ProgressBar.cs
- DockProviderWrapper.cs
- Int32RectValueSerializer.cs
- DataSourceHelper.cs
- GifBitmapEncoder.cs
- CustomAssemblyResolver.cs
- PageTheme.cs
- RenderingEventArgs.cs
- RepeatBehavior.cs
- CalendarKeyboardHelper.cs
- SafeIUnknown.cs
- TrackBarDesigner.cs
- XmlCollation.cs
- Trace.cs
- KoreanLunisolarCalendar.cs
- TagMapCollection.cs
- EpmCustomContentWriterNodeData.cs
- SchemaComplexType.cs
- JobCollate.cs
- InputBuffer.cs
- SchemaInfo.cs
- RsaKeyIdentifierClause.cs
- StylusCaptureWithinProperty.cs
- Decimal.cs
- ParameterToken.cs
- ConstraintCollection.cs
- CacheMode.cs
- SourceFileBuildProvider.cs
- ProgressBarAutomationPeer.cs
- MultiBinding.cs
- Literal.cs
- XmlSchemaComplexContentExtension.cs
- HttpListenerTimeoutManager.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- WindowsListViewGroup.cs
- TraceListener.cs
- LeaseManager.cs
- RepeaterItemCollection.cs
- Assert.cs
- Proxy.cs
- StateBag.cs
- EditorZoneBase.cs
- DataGridViewUtilities.cs
- FileDialog_Vista_Interop.cs
- ParserStreamGeometryContext.cs
- EncodingTable.cs
- ListView.cs
- ArrayElementGridEntry.cs
- RefType.cs
- RealProxy.cs
- NoResizeHandleGlyph.cs
- CatalogPartChrome.cs
- CompareInfo.cs
- ColorTransform.cs
- CollectionEditVerbManager.cs
- DataGridViewColumnCollection.cs
- XmlName.cs
- NextPreviousPagerField.cs
- BasicCellRelation.cs
- PolicyLevel.cs
- CompositeFontParser.cs
- HiddenFieldPageStatePersister.cs
- MouseGestureValueSerializer.cs
- TextTreeUndoUnit.cs
- SerializationException.cs
- RegexCharClass.cs
- NGCUIElementCollectionSerializerAsync.cs
- IndexerNameAttribute.cs
- rsa.cs
- StylusPointPropertyId.cs
- Overlapped.cs
- KeyFrames.cs
- OletxVolatileEnlistment.cs
- DesignerSerializationOptionsAttribute.cs
- ISAPIRuntime.cs
- MultiAsyncResult.cs
- ImageFormat.cs
- UnsettableComboBox.cs
- SqlDeflator.cs
- PrincipalPermission.cs
- ProtectedConfiguration.cs
- QueueProcessor.cs
- XmlSchemaExporter.cs
- URI.cs
- XmlResolver.cs
- COM2PropertyDescriptor.cs
- OptimizedTemplateContentHelper.cs
- RelationshipEndMember.cs
- ToolStripItemCollection.cs
- ParseElementCollection.cs
- NetStream.cs
- FormViewDeletedEventArgs.cs
- Stylus.cs
- AmbientLight.cs
- ReferentialConstraint.cs