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
- TextRangeAdaptor.cs
- DockPatternIdentifiers.cs
- ToolStripArrowRenderEventArgs.cs
- DataGridViewLayoutData.cs
- NativeRightsManagementAPIsStructures.cs
- MatchingStyle.cs
- ContentPlaceHolder.cs
- ListControl.cs
- TableRow.cs
- AttributeTable.cs
- Misc.cs
- WriteFileContext.cs
- ArgumentDesigner.xaml.cs
- WebPartConnectionsCancelEventArgs.cs
- DataContext.cs
- SchemaObjectWriter.cs
- DesignSurfaceServiceContainer.cs
- RepeaterCommandEventArgs.cs
- AuthorizationRule.cs
- ConfigXmlText.cs
- Setter.cs
- ParseChildrenAsPropertiesAttribute.cs
- WindowsContainer.cs
- WindowsFormsSectionHandler.cs
- ClientApiGenerator.cs
- ThemeDirectoryCompiler.cs
- MouseBinding.cs
- PrintPreviewGraphics.cs
- PageSettings.cs
- ApplicationHost.cs
- RegisteredExpandoAttribute.cs
- TableStyle.cs
- PrincipalPermission.cs
- SAPICategories.cs
- OdbcFactory.cs
- AnnotationComponentManager.cs
- ToolboxItem.cs
- Viewport2DVisual3D.cs
- RangeValueProviderWrapper.cs
- Container.cs
- ProcessModuleCollection.cs
- EventlogProvider.cs
- DiscoveryClientChannelBase.cs
- ConfigurationSectionGroup.cs
- TdsValueSetter.cs
- BitmapDecoder.cs
- Int32Converter.cs
- InternalConfigEventArgs.cs
- FileRegion.cs
- FlatButtonAppearance.cs
- ImmutableObjectAttribute.cs
- XmlComment.cs
- SplineQuaternionKeyFrame.cs
- BidPrivateBase.cs
- DynamicValueConverter.cs
- CrossSiteScriptingValidation.cs
- DataContract.cs
- XmlNamespaceMappingCollection.cs
- DockPattern.cs
- _NegoStream.cs
- TableCellCollection.cs
- InputLanguageSource.cs
- TypeContext.cs
- OverlappedAsyncResult.cs
- SqlTopReducer.cs
- ListViewSortEventArgs.cs
- BufferedOutputStream.cs
- RegexCharClass.cs
- HostUtils.cs
- HttpException.cs
- AnnotationObservableCollection.cs
- WindowsListViewGroupHelper.cs
- DeviceSpecificDesigner.cs
- JsonReader.cs
- UnsafeNativeMethods.cs
- XmlEncodedRawTextWriter.cs
- Timeline.cs
- StorageSetMapping.cs
- AppearanceEditorPart.cs
- ReadContentAsBinaryHelper.cs
- ThemeableAttribute.cs
- CategoryAttribute.cs
- ExternalException.cs
- OdbcCommandBuilder.cs
- Model3DCollection.cs
- SortFieldComparer.cs
- XComponentModel.cs
- WebPartMenu.cs
- XsltContext.cs
- cookie.cs
- DataControlReference.cs
- UpdateExpressionVisitor.cs
- XmlSerializerOperationBehavior.cs
- ChildDocumentBlock.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- nulltextnavigator.cs
- RC2CryptoServiceProvider.cs
- OperationPickerDialog.designer.cs
- TreeNodeClickEventArgs.cs
- ObjectSpanRewriter.cs