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
- EntityDataSourceState.cs
- UserNameSecurityTokenProvider.cs
- CodeDOMProvider.cs
- XmlHierarchicalDataSourceView.cs
- Stylus.cs
- CommandField.cs
- ForwardPositionQuery.cs
- DelegateSerializationHolder.cs
- ConstrainedDataObject.cs
- XmlSchemaSimpleContentExtension.cs
- CookieParameter.cs
- DataBindingCollection.cs
- ETagAttribute.cs
- HtmlMobileTextWriter.cs
- MatrixConverter.cs
- XmlILTrace.cs
- InternalPermissions.cs
- UnsafeNativeMethods.cs
- Pkcs9Attribute.cs
- MappingMetadataHelper.cs
- DrawingContextWalker.cs
- AdjustableArrowCap.cs
- OdbcRowUpdatingEvent.cs
- ThreadStartException.cs
- EntityTypeEmitter.cs
- OdbcHandle.cs
- StrokeCollectionConverter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SplitterPanel.cs
- PeoplePickerWrapper.cs
- SqlUDTStorage.cs
- PaperSize.cs
- JsonMessageEncoderFactory.cs
- BaseParagraph.cs
- FastEncoder.cs
- Viewport3DAutomationPeer.cs
- WindowsRichEditRange.cs
- VectorCollection.cs
- DynamicValueConverter.cs
- CodePageUtils.cs
- EnvironmentPermission.cs
- FrameworkTextComposition.cs
- ThousandthOfEmRealPoints.cs
- ListBox.cs
- ExceptionHelpers.cs
- SafeArrayTypeMismatchException.cs
- TransformPatternIdentifiers.cs
- SerializationFieldInfo.cs
- EditBehavior.cs
- RelationshipFixer.cs
- EventData.cs
- DetailsViewDeleteEventArgs.cs
- BlobPersonalizationState.cs
- SByte.cs
- AccessViolationException.cs
- XMLSyntaxException.cs
- DataTableExtensions.cs
- ScrollChrome.cs
- WindowsListViewGroupHelper.cs
- SQLDoubleStorage.cs
- TextParentUndoUnit.cs
- FilteredDataSetHelper.cs
- BidOverLoads.cs
- MessageTransmitTraceRecord.cs
- HttpDictionary.cs
- BuilderPropertyEntry.cs
- HttpPostedFile.cs
- LiteralControl.cs
- XPathDocumentNavigator.cs
- FontNamesConverter.cs
- InputScopeAttribute.cs
- ModifierKeysConverter.cs
- ConfigErrorGlyph.cs
- cookie.cs
- Ppl.cs
- DropShadowEffect.cs
- SqlGenericUtil.cs
- VBIdentifierDesigner.xaml.cs
- LeaseManager.cs
- SecurityUniqueId.cs
- DetailsViewUpdatedEventArgs.cs
- PointCollectionValueSerializer.cs
- Helpers.cs
- FrameSecurityDescriptor.cs
- NumberSubstitution.cs
- DataBoundControlHelper.cs
- PerformanceCounterPermissionEntry.cs
- OracleColumn.cs
- DocumentSchemaValidator.cs
- MatrixStack.cs
- Floater.cs
- WindowsClaimSet.cs
- HttpProcessUtility.cs
- LocalValueEnumerator.cs
- CellIdBoolean.cs
- HttpHandler.cs
- DataTemplateKey.cs
- UserControlCodeDomTreeGenerator.cs
- FontFamily.cs
- XsltContext.cs