Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / WebSysDisplayNameAttribute.cs / 1305376 / 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;
///
/// Constructs a new sys DisplayName.
///
internal WebSysDisplayNameAttribute(string DisplayName) : base(DisplayName) {
}
///
/// Retrieves the DisplayName text.
///
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);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RtfFormatStack.cs
- DataGridViewColumnStateChangedEventArgs.cs
- GeometryGroup.cs
- _NegotiateClient.cs
- WindowsGraphicsCacheManager.cs
- JsonServiceDocumentSerializer.cs
- LicenseContext.cs
- XmlElementCollection.cs
- XmlDataSourceNodeDescriptor.cs
- Shape.cs
- ArgumentsParser.cs
- DataFormat.cs
- BinaryNegotiation.cs
- SqlNodeAnnotations.cs
- SslStreamSecurityUpgradeProvider.cs
- PackageRelationship.cs
- XmlBindingWorker.cs
- Control.cs
- DisplayClaim.cs
- And.cs
- ServicePoint.cs
- GridViewDeletedEventArgs.cs
- DataDesignUtil.cs
- DesignerTransaction.cs
- PointKeyFrameCollection.cs
- PerformanceCounterPermissionAttribute.cs
- AnnotationService.cs
- HMAC.cs
- UnconditionalPolicy.cs
- EntityDataSourceMemberPath.cs
- CookieProtection.cs
- XDRSchema.cs
- RootProfilePropertySettingsCollection.cs
- ManagementQuery.cs
- Polygon.cs
- DataContractSerializerSection.cs
- CacheDependency.cs
- ScriptRef.cs
- MappingException.cs
- XmlSchemaObject.cs
- ObjectHandle.cs
- ChannelSinkStacks.cs
- WeakEventTable.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DynamicValueConverter.cs
- TypeDefinition.cs
- UTF32Encoding.cs
- ProcessInputEventArgs.cs
- DoubleIndependentAnimationStorage.cs
- InternalConfigHost.cs
- ReferenceService.cs
- SelectionWordBreaker.cs
- JournalNavigationScope.cs
- CheckBoxPopupAdapter.cs
- TextTreeInsertElementUndoUnit.cs
- DoubleUtil.cs
- OlePropertyStructs.cs
- OledbConnectionStringbuilder.cs
- HashMembershipCondition.cs
- CustomCategoryAttribute.cs
- ImageListStreamer.cs
- AnonymousIdentificationModule.cs
- Rect3DValueSerializer.cs
- HttpCookie.cs
- ExpressionBuilder.cs
- OleDbCommandBuilder.cs
- OleDbException.cs
- IPHostEntry.cs
- LateBoundBitmapDecoder.cs
- BufferedReadStream.cs
- ColorMatrix.cs
- XmlCharacterData.cs
- ScriptResourceHandler.cs
- SEHException.cs
- OLEDB_Enum.cs
- BuildProvidersCompiler.cs
- DeobfuscatingStream.cs
- SByteConverter.cs
- DesignerPerfEventProvider.cs
- CngKeyBlobFormat.cs
- FixedSOMTable.cs
- TcpTransportManager.cs
- OracleSqlParser.cs
- XamlTemplateSerializer.cs
- FamilyMap.cs
- DataControlHelper.cs
- CompositionCommandSet.cs
- AmbiguousMatchException.cs
- ObsoleteAttribute.cs
- ManualResetEventSlim.cs
- FileAuthorizationModule.cs
- Behavior.cs
- AuthorizationSection.cs
- CompressStream.cs
- ObjectQuery.cs
- DesignerAdapterUtil.cs
- OrderedDictionary.cs
- BaseUriHelper.cs
- DrawToolTipEventArgs.cs
- HandlerMappingMemo.cs