Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / WebCategoryAttribute.cs / 1305376 / 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; } } } // 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
- BaseCodeDomTreeGenerator.cs
- XhtmlBasicImageAdapter.cs
- Message.cs
- ProvidePropertyAttribute.cs
- XmlMtomWriter.cs
- Schema.cs
- ListBindableAttribute.cs
- HealthMonitoringSectionHelper.cs
- UriParserTemplates.cs
- FactoryGenerator.cs
- JapaneseCalendar.cs
- ConstraintConverter.cs
- ResXFileRef.cs
- HtmlElementCollection.cs
- CustomAttributeFormatException.cs
- TransactionFlowBindingElement.cs
- OutputScope.cs
- SQLByte.cs
- HttpModuleActionCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- SecurityMessageProperty.cs
- ValidationErrorCollection.cs
- IDReferencePropertyAttribute.cs
- TextModifier.cs
- SoapEnumAttribute.cs
- ConvertersCollection.cs
- XmlElementList.cs
- HostedHttpTransportManager.cs
- ArgumentException.cs
- SystemIcons.cs
- ConfigurationManager.cs
- LinqDataSourceStatusEventArgs.cs
- PixelFormat.cs
- WmlCommandAdapter.cs
- DocumentSequence.cs
- AlgoModule.cs
- SelectorItemAutomationPeer.cs
- TextElementEnumerator.cs
- Graph.cs
- ExpressionBinding.cs
- VisualTreeHelper.cs
- ExpressionBindingCollection.cs
- RuntimeConfig.cs
- ThemeDirectoryCompiler.cs
- QueryableDataSource.cs
- DateTimeOffsetStorage.cs
- CodeVariableReferenceExpression.cs
- Separator.cs
- FontFamily.cs
- PocoEntityKeyStrategy.cs
- XmlComment.cs
- ConnectionManagementElement.cs
- AssemblyInfo.cs
- TableColumn.cs
- DefaultPropertiesToSend.cs
- MetadataCollection.cs
- AnnotationComponentChooser.cs
- UnsafeMethods.cs
- LabelEditEvent.cs
- ExitEventArgs.cs
- Error.cs
- BrushValueSerializer.cs
- DataColumn.cs
- CredentialCache.cs
- ColorAnimation.cs
- EnumDataContract.cs
- DoubleAnimationBase.cs
- HTMLTagNameToTypeMapper.cs
- WebOperationContext.cs
- ArcSegment.cs
- StylusPointProperty.cs
- ZipIOCentralDirectoryFileHeader.cs
- NamespaceList.cs
- XmlSerializationGeneratedCode.cs
- TdsParserHelperClasses.cs
- IndentedTextWriter.cs
- Inline.cs
- EventProxy.cs
- CheckBoxField.cs
- DependencySource.cs
- AppDomainFactory.cs
- ISO2022Encoding.cs
- ReaderWriterLock.cs
- OdbcError.cs
- AnnotationResourceChangedEventArgs.cs
- PackageFilter.cs
- PolicyManager.cs
- SrgsElementList.cs
- DataSourceHelper.cs
- ResourceProviderFactory.cs
- infer.cs
- WebPermission.cs
- CriticalExceptions.cs
- DatasetMethodGenerator.cs
- Color.cs
- XmlTextReaderImpl.cs
- COM2PropertyPageUITypeConverter.cs
- MsmqBindingBase.cs
- TextViewSelectionProcessor.cs
- DataServiceRequestArgs.cs