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
- LicenseException.cs
- DataGridViewButtonColumn.cs
- InvalidAsynchronousStateException.cs
- SafeWaitHandle.cs
- AxParameterData.cs
- CSharpCodeProvider.cs
- IsolatedStorageFile.cs
- FrameworkElementFactory.cs
- StringBlob.cs
- GridViewUpdateEventArgs.cs
- JsonObjectDataContract.cs
- ListViewSelectEventArgs.cs
- Comparer.cs
- DataGridCaption.cs
- UserPrincipalNameElement.cs
- Switch.cs
- FunctionNode.cs
- TypeBuilderInstantiation.cs
- ErrorHandlerFaultInfo.cs
- DiscoveryClientDocuments.cs
- RSAPKCS1KeyExchangeFormatter.cs
- RuntimeConfigurationRecord.cs
- HebrewNumber.cs
- WebPartEditorApplyVerb.cs
- TemplatedControlDesigner.cs
- HScrollProperties.cs
- CriticalExceptions.cs
- Win32.cs
- LookupNode.cs
- TypeUtils.cs
- RepeaterItemCollection.cs
- SchemaExporter.cs
- Material.cs
- Rules.cs
- HttpInputStream.cs
- ObjectItemLoadingSessionData.cs
- DSACryptoServiceProvider.cs
- DataRecordInternal.cs
- TreeNodeEventArgs.cs
- SemanticTag.cs
- WindowHideOrCloseTracker.cs
- login.cs
- XmlnsDictionary.cs
- DataPagerField.cs
- ContextMenuService.cs
- RoleServiceManager.cs
- UTF7Encoding.cs
- SmiXetterAccessMap.cs
- SqlConnectionString.cs
- RoutedEvent.cs
- ReachFixedPageSerializer.cs
- GradientBrush.cs
- GiveFeedbackEventArgs.cs
- ImageFormat.cs
- PasswordTextContainer.cs
- TreeNodeBinding.cs
- HostAdapter.cs
- CodeCatchClauseCollection.cs
- Route.cs
- ClientTargetSection.cs
- FieldToken.cs
- IntersectQueryOperator.cs
- SqlWebEventProvider.cs
- SelectedDatesCollection.cs
- WebPartManagerInternals.cs
- OdbcUtils.cs
- PersonalizationAdministration.cs
- DetailsViewRowCollection.cs
- FunctionQuery.cs
- TextTreeTextElementNode.cs
- Converter.cs
- GraphicsState.cs
- RawStylusSystemGestureInputReport.cs
- Expression.cs
- AnnotationComponentChooser.cs
- DeploymentSectionCache.cs
- SessionStateContainer.cs
- UncommonField.cs
- SqlCachedBuffer.cs
- WindowsContainer.cs
- AttributeQuery.cs
- SetMemberBinder.cs
- ChannelManager.cs
- _ListenerRequestStream.cs
- RegisteredExpandoAttribute.cs
- DictionaryContent.cs
- ParserOptions.cs
- MenuItemCollectionEditor.cs
- ShutDownListener.cs
- MinimizableAttributeTypeConverter.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- DetailsViewInsertEventArgs.cs
- PropertyCondition.cs
- CharAnimationBase.cs
- AggregationMinMaxHelpers.cs
- InternalResources.cs
- RectAnimation.cs
- JulianCalendar.cs
- XmlSerializationWriter.cs
- DocumentOutline.cs