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
- SystemIPv6InterfaceProperties.cs
- AdRotator.cs
- ReturnValue.cs
- DispatchRuntime.cs
- ValuePattern.cs
- ConstraintStruct.cs
- DirectoryNotFoundException.cs
- TraceContextRecord.cs
- TemplateAction.cs
- PrintDialog.cs
- CodeBlockBuilder.cs
- X509SubjectKeyIdentifierClause.cs
- Collection.cs
- TreeNodeMouseHoverEvent.cs
- BitmapEffectState.cs
- ISAPIApplicationHost.cs
- WebPartHelpVerb.cs
- TypePropertyEditor.cs
- EventBuilder.cs
- RadialGradientBrush.cs
- DesignerAttribute.cs
- DataTableMapping.cs
- MailAddress.cs
- KeySpline.cs
- DocumentDesigner.cs
- SendKeys.cs
- CollectionViewSource.cs
- ListViewItem.cs
- IProvider.cs
- FontFamilyValueSerializer.cs
- RTLAwareMessageBox.cs
- SimpleLine.cs
- ConfigurationManagerInternal.cs
- ScalarRestriction.cs
- SecurityTokenRequirement.cs
- CodeTypeParameterCollection.cs
- NumericUpDownAccelerationCollection.cs
- XmlTextAttribute.cs
- FixedHighlight.cs
- EntityDescriptor.cs
- XslTransform.cs
- TypedAsyncResult.cs
- AsymmetricSignatureDeformatter.cs
- WebPartCancelEventArgs.cs
- ActivityWithResultWrapper.cs
- GenericEnumerator.cs
- XmlObjectSerializerWriteContext.cs
- _CacheStreams.cs
- SessionParameter.cs
- ColumnClickEvent.cs
- TransformGroup.cs
- HttpCapabilitiesBase.cs
- EncryptedType.cs
- Drawing.cs
- Not.cs
- XMLSyntaxException.cs
- GridViewPageEventArgs.cs
- AssertSection.cs
- BCLDebug.cs
- BaseHashHelper.cs
- SoapIncludeAttribute.cs
- CallbackCorrelationInitializer.cs
- FamilyTypefaceCollection.cs
- DemultiplexingClientMessageFormatter.cs
- ListControlStringCollectionEditor.cs
- TextPattern.cs
- GroupLabel.cs
- IPPacketInformation.cs
- DbProviderServices.cs
- PlainXmlSerializer.cs
- JoinTreeSlot.cs
- NetMsmqSecurityElement.cs
- HeaderedItemsControl.cs
- DataKeyCollection.cs
- UndirectedGraph.cs
- Grid.cs
- LongSumAggregationOperator.cs
- WebExceptionStatus.cs
- OdbcStatementHandle.cs
- PageBuildProvider.cs
- MultipartIdentifier.cs
- DesignerActionVerbList.cs
- DataRowView.cs
- AccessedThroughPropertyAttribute.cs
- GC.cs
- DropSource.cs
- Thumb.cs
- CommonProperties.cs
- EntityDataSourceQueryBuilder.cs
- ColumnMapVisitor.cs
- TagNameToTypeMapper.cs
- PointAnimation.cs
- TemplateInstanceAttribute.cs
- PropertyNames.cs
- Shape.cs
- WorkflowDesignerMessageFilter.cs
- XpsStructure.cs
- NamedElement.cs
- SwitchLevelAttribute.cs
- DependencyPropertyChangedEventArgs.cs