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
- DoubleCollection.cs
- ObjectListItemCollection.cs
- DataException.cs
- ConfigurationManagerHelper.cs
- ObjectStateFormatter.cs
- keycontainerpermission.cs
- ControlEvent.cs
- DecimalConstantAttribute.cs
- FontClient.cs
- ProviderManager.cs
- NGCPageContentCollectionSerializerAsync.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- RightsManagementSuppressedStream.cs
- __Filters.cs
- UnsafeNativeMethods.cs
- NotifyCollectionChangedEventArgs.cs
- InputLanguageCollection.cs
- ExtendedPropertiesHandler.cs
- SignatureToken.cs
- QilTypeChecker.cs
- ToolboxItemAttribute.cs
- NamespaceTable.cs
- CorrelationService.cs
- BulletedListEventArgs.cs
- InputScopeAttribute.cs
- TimeIntervalCollection.cs
- AspCompat.cs
- InheritanceAttribute.cs
- FactoryGenerator.cs
- DataGridViewRowEventArgs.cs
- SessionState.cs
- SecurityChannelFaultConverter.cs
- HTMLTagNameToTypeMapper.cs
- MinMaxParagraphWidth.cs
- ControlCollection.cs
- HttpApplicationStateBase.cs
- Int64.cs
- XmlSchemaAppInfo.cs
- COSERVERINFO.cs
- SqlConnectionManager.cs
- EntityCommandExecutionException.cs
- SerializationException.cs
- WindowsMenu.cs
- PixelShader.cs
- FocusManager.cs
- Command.cs
- Thread.cs
- LocalizationParserHooks.cs
- RegisteredDisposeScript.cs
- Token.cs
- HtmlValidatorAdapter.cs
- ResumeStoryboard.cs
- WebServiceParameterData.cs
- BooleanSwitch.cs
- SqlConnectionManager.cs
- TextShapeableCharacters.cs
- BitmapSourceSafeMILHandle.cs
- __TransparentProxy.cs
- RecordsAffectedEventArgs.cs
- Convert.cs
- Translator.cs
- ContextInformation.cs
- PlatformNotSupportedException.cs
- MasterPageCodeDomTreeGenerator.cs
- TriggerCollection.cs
- NativeActivityMetadata.cs
- XmlSchemaAttributeGroupRef.cs
- CompiledRegexRunner.cs
- ReadOnlyDictionary.cs
- SchemaSetCompiler.cs
- WindowsFormsHostAutomationPeer.cs
- CategoryNameCollection.cs
- IgnoreDataMemberAttribute.cs
- ContractType.cs
- CqlGenerator.cs
- ReceiveActivity.cs
- ObjectStateManagerMetadata.cs
- SqlPersonalizationProvider.cs
- XhtmlTextWriter.cs
- RowUpdatedEventArgs.cs
- IntranetCredentialPolicy.cs
- PropertyPushdownHelper.cs
- SemanticAnalyzer.cs
- _ConnectStream.cs
- HwndProxyElementProvider.cs
- DataControlFieldHeaderCell.cs
- DrawItemEvent.cs
- ObjectCacheSettings.cs
- NameScopePropertyAttribute.cs
- ReferenceTypeElement.cs
- TabPageDesigner.cs
- PropertyGroupDescription.cs
- OraclePermission.cs
- CryptoKeySecurity.cs
- PopupRootAutomationPeer.cs
- Rectangle.cs
- EdmPropertyAttribute.cs
- UnsafeMethods.cs
- RoutedEventConverter.cs