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
- LambdaCompiler.Unary.cs
- Hashtable.cs
- AddInAdapter.cs
- InstanceData.cs
- _ScatterGatherBuffers.cs
- StoreAnnotationsMap.cs
- RepeatInfo.cs
- ParserHooks.cs
- DocumentGridContextMenu.cs
- Soap12FormatExtensions.cs
- StaticFileHandler.cs
- JapaneseCalendar.cs
- FontFamily.cs
- FixedElement.cs
- DbSourceParameterCollection.cs
- ToolStripTextBox.cs
- XsltSettings.cs
- CqlWriter.cs
- SrgsRulesCollection.cs
- OutputCacheProfile.cs
- RemotingConfiguration.cs
- Viewport3DVisual.cs
- GetPageCompletedEventArgs.cs
- HttpModuleActionCollection.cs
- Single.cs
- DataGridViewRowsRemovedEventArgs.cs
- DoubleLink.cs
- DataGridViewDataConnection.cs
- CustomSignedXml.cs
- HMACMD5.cs
- WhitespaceSignificantCollectionAttribute.cs
- DocumentGridPage.cs
- ObjectHandle.cs
- FixedHyperLink.cs
- StreamInfo.cs
- PathNode.cs
- ParentQuery.cs
- SecurityTokenException.cs
- WebPartRestoreVerb.cs
- CopyOfAction.cs
- TextElementCollection.cs
- HtmlForm.cs
- CompilerState.cs
- WindowsFormsLinkLabel.cs
- ObjectSpanRewriter.cs
- Help.cs
- UntrustedRecipientException.cs
- DataSourceListEditor.cs
- AssemblyBuilderData.cs
- Nullable.cs
- RawTextInputReport.cs
- isolationinterop.cs
- HttpProfileBase.cs
- RegexFCD.cs
- _LoggingObject.cs
- ListViewGroup.cs
- DefaultSection.cs
- objectresult_tresulttype.cs
- DashStyle.cs
- EmbeddedMailObject.cs
- WebReferencesBuildProvider.cs
- RedistVersionInfo.cs
- BridgeDataReader.cs
- ToolStripRenderer.cs
- DataTableTypeConverter.cs
- BaseConfigurationRecord.cs
- IIS7WorkerRequest.cs
- ListViewTableCell.cs
- TextEndOfParagraph.cs
- FileSystemEventArgs.cs
- GenericPrincipal.cs
- TypeReference.cs
- ResolvePPIDRequest.cs
- PreservationFileWriter.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- ChangeTracker.cs
- HttpRawResponse.cs
- MonitoringDescriptionAttribute.cs
- PeerNameRegistration.cs
- TraversalRequest.cs
- ToolboxItemAttribute.cs
- ControlCollection.cs
- SamlConstants.cs
- OdbcInfoMessageEvent.cs
- ContentType.cs
- LinkedResourceCollection.cs
- DBCSCodePageEncoding.cs
- Icon.cs
- InternalConfigRoot.cs
- QilReference.cs
- NativeMethods.cs
- LogFlushAsyncResult.cs
- SimplePropertyEntry.cs
- EntityProviderServices.cs
- WebPartAddingEventArgs.cs
- PointLight.cs
- ConcurrentStack.cs
- FixedSOMElement.cs
- Pair.cs
- ServiceDebugBehavior.cs