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
- SyndicationFeed.cs
- OleDbPropertySetGuid.cs
- FlowDocumentScrollViewer.cs
- HighlightOverlayGlyph.cs
- TypedDatasetGenerator.cs
- ComplexType.cs
- FreezableCollection.cs
- LockCookie.cs
- handlecollector.cs
- GeometryDrawing.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- LabelLiteral.cs
- CompositeFontParser.cs
- SecurityRuntime.cs
- XmlChildNodes.cs
- Part.cs
- EdmToObjectNamespaceMap.cs
- ScriptReferenceEventArgs.cs
- EventToken.cs
- HebrewCalendar.cs
- CheckBox.cs
- ColumnWidthChangedEvent.cs
- CodeTypeMember.cs
- NewArrayExpression.cs
- FrameSecurityDescriptor.cs
- FormViewRow.cs
- DrawListViewSubItemEventArgs.cs
- MenuEventArgs.cs
- DesignerValidatorAdapter.cs
- QueryCursorEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- XAMLParseException.cs
- CommandArguments.cs
- QuadraticBezierSegment.cs
- Debugger.cs
- NamespaceTable.cs
- DelegatingHeader.cs
- FilterElement.cs
- ProcessManager.cs
- ColumnReorderedEventArgs.cs
- SoapCommonClasses.cs
- WindowCollection.cs
- WMICapabilities.cs
- ImageCodecInfo.cs
- XXXInfos.cs
- TextDecorationLocationValidation.cs
- DirectoryObjectSecurity.cs
- Point4DValueSerializer.cs
- HashMembershipCondition.cs
- RemotingServices.cs
- RequestQueue.cs
- GACIdentityPermission.cs
- FlowLayoutSettings.cs
- DefaultHttpHandler.cs
- EnumConverter.cs
- FixUp.cs
- DBSchemaTable.cs
- DataSourceXmlAttributeAttribute.cs
- ColorTransformHelper.cs
- ContainerUtilities.cs
- RegularExpressionValidator.cs
- FunctionQuery.cs
- CharacterMetricsDictionary.cs
- BoolExpressionVisitors.cs
- SecureConversationServiceCredential.cs
- AuthStoreRoleProvider.cs
- ObjectDataSourceMethodEventArgs.cs
- JapaneseLunisolarCalendar.cs
- SharedStatics.cs
- StaticSiteMapProvider.cs
- BitmapSource.cs
- ProtocolsConfigurationEntry.cs
- NetworkInformationPermission.cs
- _Rfc2616CacheValidators.cs
- HtmlContainerControl.cs
- SoapEnumAttribute.cs
- _ListenerResponseStream.cs
- Empty.cs
- SystemException.cs
- MemoryPressure.cs
- ColorInterpolationModeValidation.cs
- SimpleLine.cs
- GAC.cs
- IndexedEnumerable.cs
- ProxyElement.cs
- SymLanguageType.cs
- WindowsImpersonationContext.cs
- InputReferenceExpression.cs
- XLinq.cs
- Nullable.cs
- HttpCookieCollection.cs
- OpacityConverter.cs
- WebPartZoneDesigner.cs
- StoreItemCollection.cs
- MethodCallConverter.cs
- PromptEventArgs.cs
- ContextMenu.cs
- XmlSchemaGroup.cs
- MULTI_QI.cs
- CodeNamespaceImportCollection.cs