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
- ReadOnlyDataSource.cs
- HeaderedItemsControl.cs
- IdentityNotMappedException.cs
- InvalidPrinterException.cs
- ReadWriteObjectLock.cs
- ConditionalAttribute.cs
- PerformanceCounterPermission.cs
- SessionState.cs
- PackageFilter.cs
- TypeElementCollection.cs
- DocumentReferenceCollection.cs
- NumericUpDownAcceleration.cs
- OdbcConnectionFactory.cs
- ToolboxItemFilterAttribute.cs
- LambdaCompiler.Address.cs
- CommonGetThemePartSize.cs
- WinCategoryAttribute.cs
- TypeUtils.cs
- AddingNewEventArgs.cs
- InstanceCreationEditor.cs
- SqlUtils.cs
- PocoEntityKeyStrategy.cs
- ProfileInfo.cs
- InternalException.cs
- FullTextBreakpoint.cs
- RelatedEnd.cs
- ReadOnlyCollectionBase.cs
- RTLAwareMessageBox.cs
- ColumnResizeUndoUnit.cs
- PropertyInformationCollection.cs
- FormatSettings.cs
- HighlightVisual.cs
- Wildcard.cs
- XmlIgnoreAttribute.cs
- DbConvert.cs
- MouseEvent.cs
- ItemsControlAutomationPeer.cs
- ButtonPopupAdapter.cs
- DataSourceConverter.cs
- RemotingClientProxy.cs
- AssemblyInfo.cs
- DataSourceCacheDurationConverter.cs
- NonParentingControl.cs
- FormViewRow.cs
- FormView.cs
- XmlSerializerNamespaces.cs
- SecurityAlgorithmSuite.cs
- HtmlLinkAdapter.cs
- DataFormats.cs
- DiagnosticsConfiguration.cs
- StructuredTypeEmitter.cs
- KeyTimeConverter.cs
- RequestBringIntoViewEventArgs.cs
- HttpListenerElement.cs
- FileSystemWatcher.cs
- PageSetupDialog.cs
- ByteAnimation.cs
- HttpCookieCollection.cs
- XmlBoundElement.cs
- ValidatorCollection.cs
- FixedSOMTableCell.cs
- IERequestCache.cs
- TextElement.cs
- AppliedDeviceFiltersDialog.cs
- AppDomainManager.cs
- ICspAsymmetricAlgorithm.cs
- PaintEvent.cs
- UTF7Encoding.cs
- LassoSelectionBehavior.cs
- RectAnimationUsingKeyFrames.cs
- AsyncCompletedEventArgs.cs
- SoapEnumAttribute.cs
- ResourceAttributes.cs
- ExportFileRequest.cs
- ReaderOutput.cs
- WebConfigurationFileMap.cs
- PropertyEmitterBase.cs
- HostedHttpTransportManager.cs
- TrustLevelCollection.cs
- SpecialFolderEnumConverter.cs
- TextureBrush.cs
- Pens.cs
- RouteTable.cs
- DataGridTableStyleMappingNameEditor.cs
- AdornerHitTestResult.cs
- EdmTypeAttribute.cs
- AsymmetricAlgorithm.cs
- DataTableTypeConverter.cs
- SqlTriggerContext.cs
- SessionEndingCancelEventArgs.cs
- CategoryNameCollection.cs
- VerticalAlignConverter.cs
- PerfCounters.cs
- ClassDataContract.cs
- ClientSettingsProvider.cs
- OperationDescription.cs
- XsdBuilder.cs
- AggregateNode.cs
- Compilation.cs
- TypeGeneratedEventArgs.cs