Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Retrieves the DisplayName text. ///// 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); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Retrieves the DisplayName text. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VarRefManager.cs
- DataView.cs
- Rect3DConverter.cs
- ValidatorCollection.cs
- DecimalAnimationBase.cs
- Win32SafeHandles.cs
- QueryCacheEntry.cs
- PropertyItem.cs
- ImmutableCollection.cs
- DetailsViewUpdatedEventArgs.cs
- AttachedPropertyMethodSelector.cs
- SectionUpdates.cs
- SmiMetaDataProperty.cs
- Font.cs
- FrameworkContentElement.cs
- StatusBarPanelClickEvent.cs
- DebuggerService.cs
- VisualTarget.cs
- DefaultTextStore.cs
- NativeMethodsCLR.cs
- CharacterMetrics.cs
- PointConverter.cs
- BindableTemplateBuilder.cs
- XamlValidatingReader.cs
- _Rfc2616CacheValidators.cs
- FixedSOMContainer.cs
- HandledEventArgs.cs
- NetNamedPipeSecurityMode.cs
- HasCopySemanticsAttribute.cs
- Image.cs
- SecurityException.cs
- OrderByQueryOptionExpression.cs
- RuntimeArgumentHandle.cs
- MetafileHeaderWmf.cs
- HttpListenerException.cs
- SessionSwitchEventArgs.cs
- ComponentGuaranteesAttribute.cs
- BitmapData.cs
- Adorner.cs
- WindowsSspiNegotiation.cs
- TCPClient.cs
- VirtualStackFrame.cs
- RowSpanVector.cs
- SubstitutionList.cs
- AbandonedMutexException.cs
- WmlFormAdapter.cs
- PeerNameRecordCollection.cs
- HttpCookiesSection.cs
- ConfigurationManagerInternalFactory.cs
- NativeWindow.cs
- ProviderConnectionPointCollection.cs
- FusionWrap.cs
- InputBuffer.cs
- CurrentTimeZone.cs
- PartitionedStream.cs
- SafePointer.cs
- XmlSerializerVersionAttribute.cs
- SerializationFieldInfo.cs
- ComplexBindingPropertiesAttribute.cs
- XmlArrayAttribute.cs
- InputManager.cs
- TripleDES.cs
- WebScriptServiceHostFactory.cs
- FixedSOMElement.cs
- InputLangChangeEvent.cs
- ResourceAttributes.cs
- SqlBinder.cs
- HandlerFactoryWrapper.cs
- GridItemPattern.cs
- XmlText.cs
- Hyperlink.cs
- ListViewDeleteEventArgs.cs
- HttpCachePolicy.cs
- Debug.cs
- SecurityRuntime.cs
- ResXFileRef.cs
- DataServiceExpressionVisitor.cs
- XPathNodeHelper.cs
- PagerSettings.cs
- SamlConditions.cs
- ComponentManagerBroker.cs
- QueryCacheKey.cs
- HtmlHistory.cs
- rsa.cs
- BehaviorEditorPart.cs
- QuestionEventArgs.cs
- SourceInterpreter.cs
- Verify.cs
- ScrollPattern.cs
- ValidationPropertyAttribute.cs
- MissingFieldException.cs
- Viewport3DAutomationPeer.cs
- LoginName.cs
- SharedStatics.cs
- StyleBamlTreeBuilder.cs
- FirstQueryOperator.cs
- SigningCredentials.cs
- DataBindingHandlerAttribute.cs
- FixedSOMTextRun.cs
- FilteredDataSetHelper.cs