Code:
/ FX-1434 / FX-1434 / 1.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
- TraceSwitch.cs
- QilTernary.cs
- PerformanceCounter.cs
- Evidence.cs
- Misc.cs
- SafeMILHandleMemoryPressure.cs
- DataView.cs
- WebControlParameterProxy.cs
- DataColumnCollection.cs
- XmlSchemaCollection.cs
- CounterCreationData.cs
- TextServicesLoader.cs
- ProcessThread.cs
- IntegerValidatorAttribute.cs
- MediaContext.cs
- OneOfElement.cs
- TemplatedAdorner.cs
- FixedSOMPageConstructor.cs
- DefaultAssemblyResolver.cs
- XmlReader.cs
- entitydatasourceentitysetnameconverter.cs
- ServicesUtilities.cs
- ColumnHeader.cs
- DateTimeFormatInfo.cs
- AnnotationAdorner.cs
- HwndSourceParameters.cs
- ListViewGroup.cs
- BindingRestrictions.cs
- InspectionWorker.cs
- PropertyEntry.cs
- DataGridViewAutoSizeModeEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- DictionaryMarkupSerializer.cs
- LinqExpressionNormalizer.cs
- DataGridViewCellStateChangedEventArgs.cs
- BaseDataList.cs
- SqlDeflator.cs
- PropertySet.cs
- FormViewDesigner.cs
- Constraint.cs
- AxisAngleRotation3D.cs
- PageCache.cs
- RecommendedAsConfigurableAttribute.cs
- HandlerMappingMemo.cs
- RegistryDataKey.cs
- DirectoryInfo.cs
- ByteKeyFrameCollection.cs
- ObjectToIdCache.cs
- ResourceSetExpression.cs
- SmtpAuthenticationManager.cs
- TCPClient.cs
- PeerChannelFactory.cs
- UnhandledExceptionEventArgs.cs
- ResourceDisplayNameAttribute.cs
- InstanceNormalEvent.cs
- EntityDataSourceSelectingEventArgs.cs
- BamlLocalizer.cs
- AffineTransform3D.cs
- TreeViewImageIndexConverter.cs
- SlotInfo.cs
- DefaultWorkflowSchedulerService.cs
- ImageFormatConverter.cs
- NotConverter.cs
- WebPartConnection.cs
- NotFiniteNumberException.cs
- ReflectEventDescriptor.cs
- Odbc32.cs
- WS2007FederationHttpBindingElement.cs
- TemplateAction.cs
- FormsAuthenticationUser.cs
- PermissionListSet.cs
- WorkflowTimerService.cs
- assertwrapper.cs
- PrefixHandle.cs
- StatusBarItem.cs
- StateWorkerRequest.cs
- MembershipUser.cs
- SystemNetworkInterface.cs
- ColumnHeader.cs
- BindingManagerDataErrorEventArgs.cs
- LineVisual.cs
- SHA512CryptoServiceProvider.cs
- SafeArrayRankMismatchException.cs
- HwndKeyboardInputProvider.cs
- DataSourceHelper.cs
- DataGridPagingPage.cs
- MachineKeySection.cs
- _TimerThread.cs
- MemberInfoSerializationHolder.cs
- XmlHierarchicalDataSourceView.cs
- DynamicEntity.cs
- TextRangeEdit.cs
- HttpStreamFormatter.cs
- ScriptControlDescriptor.cs
- ServiceManagerHandle.cs
- EventLogEntry.cs
- SlotInfo.cs
- UpdatePanelControlTrigger.cs
- DesignerCategoryAttribute.cs
- CodeGeneratorAttribute.cs