Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / WebSysDescriptionAttribute.cs / 1305376 / WebSysDescriptionAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web {
using System;
using System.ComponentModel;
///
/// DescriptionAttribute marks a property, event, or extender with a
/// description. Visual designers can display this description when referencing
/// the member.
///
[AttributeUsage(AttributeTargets.All)]
internal class WebSysDescriptionAttribute : DescriptionAttribute {
private bool replaced;
///
/// Constructs a new sys description.
///
internal WebSysDescriptionAttribute(string description) : base(description) {
}
///
/// Retrieves the description text.
///
public override string Description {
get {
if (!replaced) {
replaced = true;
DescriptionValue = SR.GetString(base.Description);
}
return base.Description;
}
}
public override object TypeId {
get {
return typeof(DescriptionAttribute);
}
}
}
}
// 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
- Odbc32.cs
- QueueProcessor.cs
- xdrvalidator.cs
- Membership.cs
- Constant.cs
- HttpApplicationFactory.cs
- Mappings.cs
- VBIdentifierTrimConverter.cs
- WebZone.cs
- ResolveCriteriaCD1.cs
- StorageMappingItemLoader.cs
- BufferedWebEventProvider.cs
- Action.cs
- EventLevel.cs
- RemotingException.cs
- SqlDataSourceStatusEventArgs.cs
- sitestring.cs
- SettingsBindableAttribute.cs
- PackagePart.cs
- DateTimeSerializationSection.cs
- StickyNoteHelper.cs
- NTAccount.cs
- XpsPackagingException.cs
- EntityModelSchemaGenerator.cs
- SpellerInterop.cs
- TouchDevice.cs
- EdmComplexTypeAttribute.cs
- WpfWebRequestHelper.cs
- ProtocolsConfigurationHandler.cs
- DispatcherFrame.cs
- ToolboxItemSnapLineBehavior.cs
- ChannelManager.cs
- HTMLTagNameToTypeMapper.cs
- BStrWrapper.cs
- OleDbConnectionFactory.cs
- IdentityManager.cs
- FileUpload.cs
- PageStatePersister.cs
- DataContractJsonSerializer.cs
- RuntimeConfigurationRecord.cs
- CultureInfoConverter.cs
- ElementAtQueryOperator.cs
- SoapInteropTypes.cs
- ProxyWebPartConnectionCollection.cs
- FlowLayoutSettings.cs
- BaseCodePageEncoding.cs
- DataListItemEventArgs.cs
- PkcsUtils.cs
- LongPath.cs
- HtmlFormParameterWriter.cs
- Margins.cs
- ChannelParameterCollection.cs
- RecipientIdentity.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ServiceInfo.cs
- ObjectReaderCompiler.cs
- GridSplitterAutomationPeer.cs
- Style.cs
- RichTextBox.cs
- FrameworkRichTextComposition.cs
- AuthorizationRule.cs
- DetailsViewDeletedEventArgs.cs
- EventDescriptor.cs
- BitSet.cs
- SharedUtils.cs
- XmlAttribute.cs
- DataGridViewDataConnection.cs
- FontDriver.cs
- CacheVirtualItemsEvent.cs
- BindMarkupExtensionSerializer.cs
- UriTemplateLiteralPathSegment.cs
- SchemaAttDef.cs
- VectorCollection.cs
- DataRowCollection.cs
- DataControlField.cs
- XmlWrappingReader.cs
- Currency.cs
- GridSplitter.cs
- ActivityDesignerHighlighter.cs
- SchemaElementDecl.cs
- SqlIdentifier.cs
- ADConnectionHelper.cs
- StylusPointPropertyInfo.cs
- AtomServiceDocumentSerializer.cs
- ToolStripItem.cs
- DataException.cs
- ParserStreamGeometryContext.cs
- ChannelToken.cs
- RuleValidation.cs
- SqlFormatter.cs
- SqlCacheDependencyDatabaseCollection.cs
- oledbconnectionstring.cs
- QilInvokeEarlyBound.cs
- PeerNearMe.cs
- DefaultParameterValueAttribute.cs
- AspNetHostingPermission.cs
- BamlRecords.cs
- CompositeControlDesigner.cs
- GenericXmlSecurityTokenAuthenticator.cs
- RemoteWebConfigurationHost.cs