Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RootBrowserWindowProxy.cs
- GraphicsPathIterator.cs
- EntityProviderFactory.cs
- XPathMessageContext.cs
- RoutedEventConverter.cs
- SoapRpcServiceAttribute.cs
- DisposableCollectionWrapper.cs
- CreatingCookieEventArgs.cs
- _BaseOverlappedAsyncResult.cs
- VBCodeProvider.cs
- AspProxy.cs
- ToolStripProgressBar.cs
- TabOrder.cs
- NavigationFailedEventArgs.cs
- TemplateNameScope.cs
- EnumBuilder.cs
- WebServiceHandler.cs
- Baml2006ReaderSettings.cs
- BamlLocalizabilityResolver.cs
- IPipelineRuntime.cs
- TemplateParser.cs
- IdentityManager.cs
- DiscoveryReferences.cs
- URLString.cs
- HwndProxyElementProvider.cs
- KnownIds.cs
- UnsafeNativeMethods.cs
- ResourceProviderFactory.cs
- Window.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MsmqEncryptionAlgorithm.cs
- ObjectListComponentEditor.cs
- ILGenerator.cs
- MdiWindowListStrip.cs
- Transactions.cs
- CookieHandler.cs
- SamlSerializer.cs
- FixedPage.cs
- MdiWindowListItemConverter.cs
- WindowsGraphicsCacheManager.cs
- SqlFacetAttribute.cs
- TextDecorationLocationValidation.cs
- WebPartHeaderCloseVerb.cs
- WebServicesSection.cs
- BindingSourceDesigner.cs
- HashJoinQueryOperatorEnumerator.cs
- SqlFlattener.cs
- CapabilitiesUse.cs
- TemplatedMailWebEventProvider.cs
- RadioButtonRenderer.cs
- StylusEventArgs.cs
- AppearanceEditorPart.cs
- AnimatedTypeHelpers.cs
- CompiledQuery.cs
- CoreChannel.cs
- OnOperation.cs
- TemplateControlCodeDomTreeGenerator.cs
- ExtensionQuery.cs
- BinaryParser.cs
- SiteMapPath.cs
- RequestQueryProcessor.cs
- CompModSwitches.cs
- MetabaseServerConfig.cs
- TextRunCacheImp.cs
- HttpHostedTransportConfiguration.cs
- SystemFonts.cs
- Keywords.cs
- StreamGeometry.cs
- TextDecorationUnitValidation.cs
- ProgressBar.cs
- RegexParser.cs
- WebPartVerb.cs
- Brushes.cs
- RequiredAttributeAttribute.cs
- DBAsyncResult.cs
- VerificationAttribute.cs
- PrintEvent.cs
- DemultiplexingDispatchMessageFormatter.cs
- EdmItemCollection.OcAssemblyCache.cs
- XamlPointCollectionSerializer.cs
- InternalPolicyElement.cs
- FieldBuilder.cs
- HtmlFormParameterReader.cs
- DESCryptoServiceProvider.cs
- RectangleGeometry.cs
- WebControlAdapter.cs
- OleDbParameter.cs
- ListViewGroupConverter.cs
- TerminatorSinks.cs
- DecimalAnimationBase.cs
- MarginsConverter.cs
- ActivityBindForm.Designer.cs
- MobileCategoryAttribute.cs
- WMICapabilities.cs
- xmlfixedPageInfo.cs
- FixUp.cs
- TranslateTransform.cs
- DBCommandBuilder.cs
- StringDictionaryWithComparer.cs
- PnrpPeerResolverElement.cs