Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / WebCategoryAttribute.cs / 1 / WebCategoryAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web { using System; using System.ComponentModel; using System.Web.Util; ////// /// [AttributeUsage(AttributeTargets.All)] internal sealed class WebCategoryAttribute : CategoryAttribute { ////// CategoryAttribute that can access ASP.NET localized strings. /// ////// internal WebCategoryAttribute(string category) : base(category) { } public override object TypeId { get { return typeof(CategoryAttribute); } } ////// Initializes a new instance of the ///class. /// /// This method is called the first time the category property /// is accessed. It provides a way to lookup a localized string for /// the given category. Classes may override this to add their /// own localized names to categories. If a localized string is /// available for the given value, the method should return it. /// Otherwise, it should return null. /// protected override string GetLocalizedString(string value) { string localizedValue = base.GetLocalizedString(value); if (localizedValue == null) { localizedValue = (string)SR.GetString("Category_" + value); } // This attribute is internal, and we should never have a missing resource string. // Debug.Assert(localizedValue != null, "All WebForms category attributes should have localized strings. Category '" + value + "' not found."); return localizedValue; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DateBoldEvent.cs
- PrimaryKeyTypeConverter.cs
- CanonicalizationDriver.cs
- OdbcParameter.cs
- ArglessEventHandlerProxy.cs
- BmpBitmapDecoder.cs
- SiteMapNodeItem.cs
- InvalidateEvent.cs
- Automation.cs
- Compiler.cs
- IndicCharClassifier.cs
- DocobjHost.cs
- PrinterUnitConvert.cs
- ProfilePropertyNameValidator.cs
- ByteFacetDescriptionElement.cs
- NativeObjectSecurity.cs
- ScriptControlManager.cs
- GeneralTransform.cs
- CodeAttachEventStatement.cs
- ParseHttpDate.cs
- CodeParameterDeclarationExpression.cs
- Int32RectValueSerializer.cs
- TemplatedWizardStep.cs
- FontCacheLogic.cs
- EntitySqlException.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- GACMembershipCondition.cs
- TextRunTypographyProperties.cs
- HttpResponseMessageProperty.cs
- DataServiceExpressionVisitor.cs
- DocumentXmlWriter.cs
- EventMappingSettings.cs
- ArcSegment.cs
- TextBoxView.cs
- FormatPage.cs
- OdbcErrorCollection.cs
- ComplusTypeValidator.cs
- TdsEnums.cs
- DirectionalLight.cs
- LingerOption.cs
- Stackframe.cs
- DockProviderWrapper.cs
- SqlParameterCollection.cs
- FunctionQuery.cs
- WMIInterop.cs
- ClientSideQueueItem.cs
- Compiler.cs
- SymbolPair.cs
- ClientSponsor.cs
- QuarticEase.cs
- NetCodeGroup.cs
- XsltLoader.cs
- ListItem.cs
- TranslateTransform3D.cs
- UserNameSecurityTokenProvider.cs
- DmlSqlGenerator.cs
- Button.cs
- AccessViolationException.cs
- ExpressionVisitor.cs
- SystemIcons.cs
- TypeUtil.cs
- BufferBuilder.cs
- LingerOption.cs
- RefType.cs
- TypeInfo.cs
- SecurityTokenProvider.cs
- DesignerValidationSummaryAdapter.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- serverconfig.cs
- DocumentViewerAutomationPeer.cs
- ServiceHost.cs
- webbrowsersite.cs
- TabItemWrapperAutomationPeer.cs
- WmlTextViewAdapter.cs
- SiblingIterators.cs
- WebPartDisplayModeCancelEventArgs.cs
- ConfigDefinitionUpdates.cs
- CodeTypeReferenceSerializer.cs
- DataGridPagerStyle.cs
- regiisutil.cs
- ProcessThreadCollection.cs
- AssemblyBuilder.cs
- Documentation.cs
- PersonalizationProvider.cs
- EditorZoneBase.cs
- SQLBytes.cs
- DataSourceConverter.cs
- DesignerProperties.cs
- TemplateControlCodeDomTreeGenerator.cs
- MenuCommandService.cs
- WebPartCloseVerb.cs
- EdmSchemaError.cs
- ViewValidator.cs
- AsyncCompletedEventArgs.cs
- TableHeaderCell.cs
- ViewStateModeByIdAttribute.cs
- TextEffect.cs
- TemplateControlCodeDomTreeGenerator.cs
- HandledMouseEvent.cs
- recordstate.cs