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
- WebPartAuthorizationEventArgs.cs
- SrgsSemanticInterpretationTag.cs
- ApplicationDirectoryMembershipCondition.cs
- RegexBoyerMoore.cs
- ResXDataNode.cs
- DataColumnMapping.cs
- _SslState.cs
- TextBoxBase.cs
- ProjectionPath.cs
- NullableBoolConverter.cs
- ExpressionEditor.cs
- RightsManagementInformation.cs
- ErrorFormatterPage.cs
- StackBuilderSink.cs
- KeyInfo.cs
- TaskCanceledException.cs
- TabletCollection.cs
- SiteMapProvider.cs
- keycontainerpermission.cs
- MailMessage.cs
- GeneralTransform3DCollection.cs
- Matrix3D.cs
- TextUtf8RawTextWriter.cs
- SapiRecognizer.cs
- TemplateControl.cs
- ContractComponent.cs
- ClientConfigPaths.cs
- CommandBindingCollection.cs
- CheckBox.cs
- Identifier.cs
- HtmlAnchor.cs
- SystemResourceHost.cs
- ExtenderHelpers.cs
- WindowsListViewSubItem.cs
- ProtocolsSection.cs
- CatalogZoneAutoFormat.cs
- XdrBuilder.cs
- RegexCode.cs
- ByteConverter.cs
- WindowsTooltip.cs
- CommunicationObjectAbortedException.cs
- NameValuePair.cs
- TypeUtil.cs
- CustomBindingCollectionElement.cs
- TypeConverterHelper.cs
- BrowserDefinitionCollection.cs
- XPathDocumentNavigator.cs
- ProfileServiceManager.cs
- DbConnectionPoolIdentity.cs
- ClientFormsIdentity.cs
- LinqDataSourceUpdateEventArgs.cs
- UnauthorizedWebPart.cs
- XmlValidatingReaderImpl.cs
- FontUnit.cs
- BitmapFrameDecode.cs
- recordstate.cs
- GenericWebPart.cs
- ContractListAdapter.cs
- DBSqlParserColumnCollection.cs
- CultureMapper.cs
- NativeMethods.cs
- HttpStreams.cs
- DataServiceSaveChangesEventArgs.cs
- ErrorProvider.cs
- QueryExpr.cs
- Button.cs
- _MultipleConnectAsync.cs
- TypeNameConverter.cs
- SerialErrors.cs
- HttpValueCollection.cs
- ArgIterator.cs
- ExceptionUtility.cs
- MulticastNotSupportedException.cs
- ChannelBase.cs
- SQLInt32Storage.cs
- XmlSchemaInferenceException.cs
- TextCharacters.cs
- TCPClient.cs
- EncryptedReference.cs
- RpcResponse.cs
- NullableIntSumAggregationOperator.cs
- RemotingAttributes.cs
- RedirectionProxy.cs
- BaseTemplateParser.cs
- Model3DGroup.cs
- BaseValidator.cs
- FlowDocumentView.cs
- BaseUriHelper.cs
- NCryptNative.cs
- CompositionTarget.cs
- _TLSstream.cs
- ISO2022Encoding.cs
- StrokeNodeData.cs
- ToolStripDropDownMenu.cs
- hwndwrapper.cs
- CodeGeneratorOptions.cs
- DrawItemEvent.cs
- UInt32Converter.cs
- JsonWriter.cs
- SiteIdentityPermission.cs