Code:
/ DotNET / DotNET / 8.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
- EnvironmentPermission.cs
- RelationshipManager.cs
- TCEAdapterGenerator.cs
- ColumnTypeConverter.cs
- TileBrush.cs
- CheckBox.cs
- XmlRawWriter.cs
- ScriptServiceAttribute.cs
- TimeSpanStorage.cs
- ViewGenResults.cs
- BindingMemberInfo.cs
- XmlSchemaImporter.cs
- BindingOperations.cs
- ExclusiveTcpListener.cs
- Int64AnimationUsingKeyFrames.cs
- StringConverter.cs
- WmpBitmapEncoder.cs
- CriticalFinalizerObject.cs
- Quaternion.cs
- ModifierKeysConverter.cs
- StructuralCache.cs
- ScopeCompiler.cs
- TreeNodeClickEventArgs.cs
- GlyphInfoList.cs
- ApplicationGesture.cs
- AccessKeyManager.cs
- MsmqIntegrationProcessProtocolHandler.cs
- DrawingGroupDrawingContext.cs
- PrimitiveType.cs
- MimeWriter.cs
- ListViewGroupConverter.cs
- ICspAsymmetricAlgorithm.cs
- Html32TextWriter.cs
- CacheMemory.cs
- UiaCoreTypesApi.cs
- NativeMethods.cs
- EmptyEnumerable.cs
- Selector.cs
- SiteMapHierarchicalDataSourceView.cs
- TrackingProvider.cs
- TargetParameterCountException.cs
- Environment.cs
- DbCommandTree.cs
- CodeTypeDeclarationCollection.cs
- WindowsToolbar.cs
- ControlValuePropertyAttribute.cs
- SystemParameters.cs
- LocatorPart.cs
- DataSourceControlBuilder.cs
- InputLangChangeRequestEvent.cs
- AbstractSvcMapFileLoader.cs
- QueryableDataSourceView.cs
- TextElementEnumerator.cs
- ListBoxItemAutomationPeer.cs
- Utils.cs
- TextSelectionProcessor.cs
- WebResourceUtil.cs
- CompModSwitches.cs
- TaiwanLunisolarCalendar.cs
- XmlObjectSerializerReadContextComplex.cs
- ToolStripInSituService.cs
- DataRowCollection.cs
- EventLogStatus.cs
- ConfigsHelper.cs
- Encoder.cs
- CallContext.cs
- VScrollProperties.cs
- ConstructorNeedsTagAttribute.cs
- SignatureHelper.cs
- WebConfigurationHost.cs
- EditorZoneBase.cs
- HttpCachePolicy.cs
- PropertyValueUIItem.cs
- SqlConnectionHelper.cs
- BooleanStorage.cs
- WMIInterop.cs
- TimeSpan.cs
- newinstructionaction.cs
- DescendentsWalkerBase.cs
- DataControlPagerLinkButton.cs
- SplitContainer.cs
- SrgsOneOf.cs
- SQLBytes.cs
- EventLogLink.cs
- LongTypeConverter.cs
- DispatcherExceptionEventArgs.cs
- ProgressBar.cs
- SafeRightsManagementEnvironmentHandle.cs
- HtmlTextViewAdapter.cs
- WindowInteropHelper.cs
- WorkflowItemsPresenter.cs
- _LoggingObject.cs
- UnsafeNativeMethods.cs
- MembershipSection.cs
- IntegerCollectionEditor.cs
- KnownBoxes.cs
- UserControl.cs
- CalloutQueueItem.cs
- ToolStripSplitStackLayout.cs
- CodeIndexerExpression.cs