Code:
/ FX-1434 / FX-1434 / 1.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
- TypeToArgumentTypeConverter.cs
- HtmlElement.cs
- DocobjHost.cs
- localization.cs
- OleDbEnumerator.cs
- LexicalChunk.cs
- UserNamePasswordValidator.cs
- SecurityTokenTypes.cs
- AssemblyFilter.cs
- DBConnectionString.cs
- Simplifier.cs
- ReliabilityContractAttribute.cs
- ResourcePool.cs
- ProcessRequestArgs.cs
- GeneralTransform3D.cs
- SafeNativeMethods.cs
- ProfileProvider.cs
- ConnectionStringsExpressionEditor.cs
- ReadWriteControlDesigner.cs
- PreProcessInputEventArgs.cs
- PtsCache.cs
- Track.cs
- GeometryHitTestParameters.cs
- WindowsHyperlink.cs
- DataGridItemCollection.cs
- CodeSubDirectoriesCollection.cs
- Parser.cs
- ServiceHttpModule.cs
- TextTreeNode.cs
- ColumnResizeAdorner.cs
- ParameterModifier.cs
- ContractBase.cs
- MediaTimeline.cs
- ArgumentOutOfRangeException.cs
- GraphicsContainer.cs
- StructureChangedEventArgs.cs
- ConnectionPoolManager.cs
- StyleXamlTreeBuilder.cs
- XamlRtfConverter.cs
- SystemIPGlobalStatistics.cs
- WebSysDescriptionAttribute.cs
- RelationshipType.cs
- PcmConverter.cs
- SplineQuaternionKeyFrame.cs
- CharacterHit.cs
- PostBackOptions.cs
- SqlWorkflowPersistenceService.cs
- Quad.cs
- DataError.cs
- ActivationServices.cs
- SafeFileHandle.cs
- DesignBindingPropertyDescriptor.cs
- InputScope.cs
- ValueQuery.cs
- TimeSpanConverter.cs
- FrameworkContentElementAutomationPeer.cs
- PermissionRequestEvidence.cs
- CriticalHandle.cs
- ItemsChangedEventArgs.cs
- StickyNote.cs
- CFStream.cs
- RoleManagerSection.cs
- SecurityTokenParametersEnumerable.cs
- Html32TextWriter.cs
- smtppermission.cs
- ConnectionStringsSection.cs
- ListControlDataBindingHandler.cs
- TableRow.cs
- mda.cs
- ContextMenuStrip.cs
- HttpCookieCollection.cs
- DropShadowBitmapEffect.cs
- PropertyInfo.cs
- ToolboxItemCollection.cs
- DataReaderContainer.cs
- XmlSchemaDocumentation.cs
- RadioButton.cs
- CmsInterop.cs
- BufferAllocator.cs
- COAUTHINFO.cs
- SoapIgnoreAttribute.cs
- Registry.cs
- OraclePermissionAttribute.cs
- DbProviderServices.cs
- QueuePathDialog.cs
- TextServicesContext.cs
- Pipe.cs
- UrlParameterWriter.cs
- diagnosticsswitches.cs
- ConfigurationSection.cs
- ButtonField.cs
- Suspend.cs
- CodeGenerator.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ElementMarkupObject.cs
- RedirectionProxy.cs
- Overlapped.cs
- BinaryObjectInfo.cs
- HeaderedContentControl.cs
- DataServiceProviderWrapper.cs