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
- CompilerParameters.cs
- Pkcs7Signer.cs
- InputBuffer.cs
- StubHelpers.cs
- VisualStyleRenderer.cs
- RoutedEventConverter.cs
- TextEditorTyping.cs
- GrammarBuilderWildcard.cs
- ContextMenuStrip.cs
- Tile.cs
- XmlSecureResolver.cs
- WindowsIdentity.cs
- Event.cs
- GestureRecognizer.cs
- ValueTypeFixupInfo.cs
- WorkflowPageSetupDialog.cs
- InternalTypeHelper.cs
- BitmapEffectGroup.cs
- Stylus.cs
- OdbcConnectionFactory.cs
- ActivityAction.cs
- SymLanguageType.cs
- AsyncOperation.cs
- SolidColorBrush.cs
- CookieParameter.cs
- OleDbInfoMessageEvent.cs
- ProfileBuildProvider.cs
- WebPartCatalogCloseVerb.cs
- ExpressionConverter.cs
- BinaryOperationBinder.cs
- MetafileHeaderWmf.cs
- WebPartRestoreVerb.cs
- AddingNewEventArgs.cs
- RuleAttributes.cs
- MetadataSerializer.cs
- FixedSOMImage.cs
- ConfigXmlSignificantWhitespace.cs
- BaseCollection.cs
- StoragePropertyMapping.cs
- ResolvedKeyFrameEntry.cs
- SqlDataSourceCommandEventArgs.cs
- WebPartEventArgs.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ResourceDescriptionAttribute.cs
- SystemIPAddressInformation.cs
- SafeFindHandle.cs
- MessageTraceRecord.cs
- ExpressionBuilderCollection.cs
- FastPropertyAccessor.cs
- SettingsProperty.cs
- ValidationError.cs
- SqlBulkCopyColumnMappingCollection.cs
- HtmlElementEventArgs.cs
- ActivityWithResult.cs
- MarkerProperties.cs
- QilGeneratorEnv.cs
- TextBreakpoint.cs
- InputLangChangeEvent.cs
- TextSpan.cs
- SQLSingleStorage.cs
- Environment.cs
- CutCopyPasteHelper.cs
- OdbcReferenceCollection.cs
- RegisteredArrayDeclaration.cs
- DebuggerAttributes.cs
- DeviceSpecificDesigner.cs
- XmlTypeMapping.cs
- JapaneseCalendar.cs
- EFAssociationProvider.cs
- UserNameServiceElement.cs
- TabPage.cs
- StreamWithDictionary.cs
- MemoryMappedFileSecurity.cs
- SchemaTableColumn.cs
- RelationshipConverter.cs
- FrugalMap.cs
- MarkupCompiler.cs
- DbParameterHelper.cs
- SoapObjectReader.cs
- EncryptedKeyIdentifierClause.cs
- SharedStatics.cs
- Parameter.cs
- WebPartUserCapability.cs
- UnmanagedHandle.cs
- SymmetricSecurityProtocol.cs
- CompilationUtil.cs
- FocusWithinProperty.cs
- Parser.cs
- WebPartsSection.cs
- WpfKnownTypeInvoker.cs
- TrimSurroundingWhitespaceAttribute.cs
- SafeIUnknown.cs
- FromReply.cs
- ListViewContainer.cs
- DataGridViewRowStateChangedEventArgs.cs
- UnsafeNativeMethods.cs
- SqlDataSourceQueryEditorForm.cs
- EntityDataSourceState.cs
- BookmarkScopeManager.cs
- StringConcat.cs