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
- SessionEndedEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- EventDescriptor.cs
- XmlWriterTraceListener.cs
- ComponentManagerBroker.cs
- SystemInfo.cs
- EntityContainerAssociationSetEnd.cs
- TdsParserSessionPool.cs
- EntityWithChangeTrackerStrategy.cs
- RectValueSerializer.cs
- SelectionHighlightInfo.cs
- ProcessHost.cs
- OutOfProcStateClientManager.cs
- TextRangeProviderWrapper.cs
- Predicate.cs
- RegionInfo.cs
- SafeMILHandleMemoryPressure.cs
- CompressEmulationStream.cs
- DrawListViewSubItemEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- EntityUtil.cs
- XmlSchemaAnnotation.cs
- ActivationArguments.cs
- DataRowComparer.cs
- ProfileBuildProvider.cs
- WindowPattern.cs
- TypedElement.cs
- PartManifestEntry.cs
- MissingMemberException.cs
- DoubleAnimationClockResource.cs
- EditorPartChrome.cs
- EntityClientCacheEntry.cs
- ToggleProviderWrapper.cs
- BamlResourceContent.cs
- ContextMarshalException.cs
- TypeLoadException.cs
- Section.cs
- WebPartEditorApplyVerb.cs
- FrameworkElement.cs
- SingleStorage.cs
- WebPartsSection.cs
- Label.cs
- InvalidProgramException.cs
- LoopExpression.cs
- DbConnectionOptions.cs
- SmtpMail.cs
- SchemaElementDecl.cs
- CodeIterationStatement.cs
- AccessedThroughPropertyAttribute.cs
- httpstaticobjectscollection.cs
- TextReader.cs
- Int32EqualityComparer.cs
- WebBrowser.cs
- ArcSegment.cs
- MutableAssemblyCacheEntry.cs
- PtsHost.cs
- RuntimeCompatibilityAttribute.cs
- _Rfc2616CacheValidators.cs
- ChangeNode.cs
- XamlLoadErrorInfo.cs
- SymmetricAlgorithm.cs
- sapiproxy.cs
- DrawingCollection.cs
- TextEditorCopyPaste.cs
- DispatchOperationRuntime.cs
- WebServiceReceiveDesigner.cs
- DragDrop.cs
- Deflater.cs
- ByteViewer.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- KeyedCollection.cs
- MaterialCollection.cs
- ButtonStandardAdapter.cs
- RuntimeCompatibilityAttribute.cs
- DBDataPermission.cs
- PageClientProxyGenerator.cs
- CollectionContainer.cs
- OleCmdHelper.cs
- MemberPathMap.cs
- StickyNoteContentControl.cs
- SmiEventSink_Default.cs
- CardSpaceSelector.cs
- DataTableNewRowEvent.cs
- IPHostEntry.cs
- RotateTransform3D.cs
- Terminate.cs
- SendSecurityHeader.cs
- DefaultHttpHandler.cs
- SqlNotificationEventArgs.cs
- DeploymentSectionCache.cs
- HWStack.cs
- ConfigXmlText.cs
- ResXResourceReader.cs
- Expressions.cs
- ScriptingJsonSerializationSection.cs
- CmsUtils.cs
- HtmlInputCheckBox.cs
- StretchValidation.cs
- CultureNotFoundException.cs
- ToolStripItemCollection.cs