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
- StandardOleMarshalObject.cs
- SubMenuStyleCollection.cs
- HostingPreferredMapPath.cs
- AmbiguousMatchException.cs
- VirtualPathProvider.cs
- OneOfElement.cs
- MessageAction.cs
- DataGridViewSelectedCellCollection.cs
- Pen.cs
- DeviceSpecificChoiceCollection.cs
- ChameleonKey.cs
- StrongTypingException.cs
- ApplicationContext.cs
- UserPreferenceChangingEventArgs.cs
- ToolStrip.cs
- QueryReaderSettings.cs
- XmlLoader.cs
- AspNetHostingPermission.cs
- SQLInt16Storage.cs
- Track.cs
- AutomationIdentifier.cs
- CommandID.cs
- FirstMatchCodeGroup.cs
- LoginName.cs
- UnsafeNativeMethods.cs
- CategoriesDocument.cs
- DownloadProgressEventArgs.cs
- CategoryGridEntry.cs
- MemoryPressure.cs
- ConfigsHelper.cs
- NullableDoubleAverageAggregationOperator.cs
- Visual3D.cs
- OpenFileDialog.cs
- AssemblyCache.cs
- OracleException.cs
- QilValidationVisitor.cs
- LayoutEditorPart.cs
- ScrollContentPresenter.cs
- AgileSafeNativeMemoryHandle.cs
- BitmapMetadata.cs
- WindowsMenu.cs
- TranslateTransform.cs
- GeneralTransform3DTo2D.cs
- PageParserFilter.cs
- AsymmetricKeyExchangeDeformatter.cs
- DomNameTable.cs
- HwndSubclass.cs
- ColumnHeader.cs
- FunctionCommandText.cs
- RequestCacheValidator.cs
- HttpServerChannel.cs
- EnumValAlphaComparer.cs
- MemoryStream.cs
- NativeMethods.cs
- ResourceSetExpression.cs
- DocumentReference.cs
- Int16Converter.cs
- _OverlappedAsyncResult.cs
- SchemaInfo.cs
- RemoteWebConfigurationHostStream.cs
- BoolExpr.cs
- DataSourceXmlElementAttribute.cs
- DrawingContextWalker.cs
- OracleConnectionFactory.cs
- WorkflowCompensationBehavior.cs
- RouteValueExpressionBuilder.cs
- ImageListStreamer.cs
- InkPresenterAutomationPeer.cs
- HttpModuleAction.cs
- TextFormatterHost.cs
- ResolveNameEventArgs.cs
- SchemaName.cs
- Token.cs
- SymbolMethod.cs
- HwndProxyElementProvider.cs
- ClientApiGenerator.cs
- TextEditorDragDrop.cs
- CompModHelpers.cs
- StringAnimationUsingKeyFrames.cs
- Transform.cs
- CompiledAction.cs
- ColorBuilder.cs
- safelink.cs
- CapabilitiesUse.cs
- ScopelessEnumAttribute.cs
- InputReferenceExpression.cs
- EntityConnectionStringBuilder.cs
- ToolBar.cs
- TransformerTypeCollection.cs
- XmlWrappingReader.cs
- ErrorTableItemStyle.cs
- MsmqHostedTransportConfiguration.cs
- WindowsListViewItemStartMenu.cs
- MappedMetaModel.cs
- ProfileSettings.cs
- HandlerFactoryCache.cs
- TemplatedWizardStep.cs
- AssemblyUtil.cs
- SqlDataSourceEnumerator.cs
- MiniParameterInfo.cs