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
- AdornedElementPlaceholder.cs
- DrawingVisual.cs
- AssemblySettingAttributes.cs
- ReferencedCategoriesDocument.cs
- GridToolTip.cs
- PolyBezierSegmentFigureLogic.cs
- AppliesToBehaviorDecisionTable.cs
- SpecialNameAttribute.cs
- RecordsAffectedEventArgs.cs
- FlowDocumentPage.cs
- precedingquery.cs
- FamilyMap.cs
- SourceInterpreter.cs
- AuthenticationModuleElement.cs
- JpegBitmapDecoder.cs
- milrender.cs
- SchemaComplexType.cs
- XappLauncher.cs
- SourceInterpreter.cs
- QuarticEase.cs
- InputLanguageEventArgs.cs
- StateWorkerRequest.cs
- Method.cs
- DataRecordObjectView.cs
- CacheEntry.cs
- ListItemsCollectionEditor.cs
- WeakReferenceKey.cs
- RuleRefElement.cs
- Int32Rect.cs
- XpsFilter.cs
- BufferedMessageData.cs
- ArgumentNullException.cs
- ToolStripDropDownItem.cs
- StateItem.cs
- DataSourceProvider.cs
- InkPresenterAutomationPeer.cs
- CachedFontFamily.cs
- WriteLine.cs
- DataGridViewTopLeftHeaderCell.cs
- WebPartHelpVerb.cs
- FunctionUpdateCommand.cs
- ServiceDescriptionSerializer.cs
- UpdateInfo.cs
- DoubleKeyFrameCollection.cs
- ComboBoxHelper.cs
- MatrixTransform.cs
- SqlGatherProducedAliases.cs
- Label.cs
- CompositeCollection.cs
- AnimatedTypeHelpers.cs
- MenuItemAutomationPeer.cs
- TCEAdapterGenerator.cs
- DataShape.cs
- Control.cs
- MonthCalendar.cs
- Repeater.cs
- ArrayHelper.cs
- DrawListViewItemEventArgs.cs
- ParameterDataSourceExpression.cs
- ConfigurationStrings.cs
- UpdateProgress.cs
- CodeNamespaceImport.cs
- FormViewModeEventArgs.cs
- WorkflowQueueInfo.cs
- VectorAnimationUsingKeyFrames.cs
- WeakRefEnumerator.cs
- DbXmlEnabledProviderManifest.cs
- Iis7Helper.cs
- CodeMemberProperty.cs
- XmlWrappingWriter.cs
- XPathParser.cs
- X500Name.cs
- ParameterBuilder.cs
- Tracking.cs
- DataFormat.cs
- ImplicitInputBrush.cs
- Unit.cs
- PenThreadWorker.cs
- ListBoxDesigner.cs
- ExtenderProvidedPropertyAttribute.cs
- InputBindingCollection.cs
- BasicCommandTreeVisitor.cs
- ParameterExpression.cs
- OutputScopeManager.cs
- ZoneLinkButton.cs
- ConfigurationValidatorBase.cs
- ListViewItem.cs
- RecordBuilder.cs
- TraceHandler.cs
- IncrementalHitTester.cs
- AudioFormatConverter.cs
- DeobfuscatingStream.cs
- SudsWriter.cs
- VSDExceptions.cs
- XmlSchemaObjectTable.cs
- MetadataLocation.cs
- COM2ExtendedBrowsingHandler.cs
- MultiAsyncResult.cs
- DrawToolTipEventArgs.cs
- Error.cs