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
- ExecutionContext.cs
- DataServiceEntityAttribute.cs
- BrowserCapabilitiesCompiler.cs
- WindowsTokenRoleProvider.cs
- BulletDecorator.cs
- ContentControl.cs
- AttributeEmitter.cs
- RSACryptoServiceProvider.cs
- RoutedCommand.cs
- HashHelper.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- CheckBoxRenderer.cs
- XPathScanner.cs
- OleDbPropertySetGuid.cs
- CollectionEditorDialog.cs
- DataGridItemEventArgs.cs
- AssemblyBuilder.cs
- EncoderFallback.cs
- Comparer.cs
- WorkflowHostingEndpoint.cs
- FormatPage.cs
- HashHelpers.cs
- Int16.cs
- DefinitionUpdate.cs
- RTLAwareMessageBox.cs
- SQLBoolean.cs
- ButtonField.cs
- LexicalChunk.cs
- XmlUtilWriter.cs
- login.cs
- GridViewColumnCollectionChangedEventArgs.cs
- AsymmetricSignatureFormatter.cs
- DBAsyncResult.cs
- CustomWebEventKey.cs
- DesignerLoader.cs
- OptimisticConcurrencyException.cs
- PeerNameRegistration.cs
- EdmError.cs
- Triangle.cs
- _SingleItemRequestCache.cs
- CreateUserWizard.cs
- HttpCacheParams.cs
- XsdBuilder.cs
- DataColumnMapping.cs
- BaseResourcesBuildProvider.cs
- MessageSecurityOverTcpElement.cs
- FormsAuthentication.cs
- ApplicationDirectoryMembershipCondition.cs
- ActivityCompletionCallbackWrapper.cs
- VerificationException.cs
- MatcherBuilder.cs
- DataServiceQueryException.cs
- CompilationUnit.cs
- ByteStack.cs
- IndexerNameAttribute.cs
- ToolStripGrip.cs
- SettingsPropertyValueCollection.cs
- BStrWrapper.cs
- ListViewCommandEventArgs.cs
- MenuItemStyleCollectionEditor.cs
- GridViewEditEventArgs.cs
- SemanticValue.cs
- LowerCaseStringConverter.cs
- IMembershipProvider.cs
- TextDpi.cs
- HostedHttpTransportManager.cs
- StylusPointPropertyInfo.cs
- FormsAuthenticationTicket.cs
- ResourceExpressionBuilder.cs
- EtwTrace.cs
- Evaluator.cs
- GridPattern.cs
- DbExpressionVisitor_TResultType.cs
- ListViewCancelEventArgs.cs
- FacetEnabledSchemaElement.cs
- TreeViewImageIndexConverter.cs
- MaterializeFromAtom.cs
- XPathItem.cs
- ToolBarButtonClickEvent.cs
- DbConnectionOptions.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- WeakEventTable.cs
- IISMapPath.cs
- MediaElement.cs
- VScrollBar.cs
- TableRowGroup.cs
- BaseResourcesBuildProvider.cs
- CommandLineParser.cs
- Path.cs
- DictionaryContent.cs
- OverlappedAsyncResult.cs
- ClientConfigurationHost.cs
- TimeStampChecker.cs
- ValidationError.cs
- TimeSpanValidatorAttribute.cs
- DBCommandBuilder.cs
- ExpressionBuilder.cs
- ProfileSettings.cs
- WindowsBrush.cs
- RadioButtonAutomationPeer.cs