Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / WebCategoryAttribute.cs / 1305376 / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SchemaType.cs
- VideoDrawing.cs
- XPathException.cs
- ObjectMemberMapping.cs
- PerformanceCounterPermissionEntry.cs
- ArgumentException.cs
- ColumnMapTranslator.cs
- ContractMapping.cs
- RotateTransform3D.cs
- IisTraceListener.cs
- EdmFunction.cs
- XmlSchemaExternal.cs
- SqlUdtInfo.cs
- HTMLTagNameToTypeMapper.cs
- XMLUtil.cs
- XmlConvert.cs
- WindowAutomationPeer.cs
- shaperfactoryquerycachekey.cs
- DataControlPagerLinkButton.cs
- ConfigUtil.cs
- CacheSection.cs
- NativeCppClassAttribute.cs
- ServiceBusyException.cs
- IdentitySection.cs
- EntityViewGenerator.cs
- BookmarkScopeInfo.cs
- AttachedPropertyInfo.cs
- Comparer.cs
- ModuleConfigurationInfo.cs
- CharEntityEncoderFallback.cs
- RawStylusInputCustomDataList.cs
- ListBox.cs
- FixUpCollection.cs
- BindingGroup.cs
- DrawingAttributes.cs
- filewebresponse.cs
- WebBrowserHelper.cs
- HandoffBehavior.cs
- RuleCache.cs
- FontDifferentiator.cs
- DispatcherExceptionEventArgs.cs
- TypeViewSchema.cs
- DataRowExtensions.cs
- EncodingDataItem.cs
- TripleDES.cs
- FastEncoderWindow.cs
- ProfessionalColors.cs
- StylusPlugInCollection.cs
- RuntimeConfigLKG.cs
- ProfessionalColorTable.cs
- CodeExpressionCollection.cs
- CodeTypeDelegate.cs
- BehaviorDragDropEventArgs.cs
- ReadWriteControlDesigner.cs
- Automation.cs
- StoreContentChangedEventArgs.cs
- MediaCommands.cs
- _IPv4Address.cs
- DataColumnPropertyDescriptor.cs
- PersistenceMetadataNamespace.cs
- PhysicalAddress.cs
- Int64Converter.cs
- GroupBoxAutomationPeer.cs
- ValidationVisibilityAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- EventMappingSettingsCollection.cs
- LineUtil.cs
- COM2ComponentEditor.cs
- _SafeNetHandles.cs
- XmlComplianceUtil.cs
- SQLInt32Storage.cs
- AppDomainUnloadedException.cs
- HttpsChannelFactory.cs
- RawStylusInputReport.cs
- WindowsStatusBar.cs
- MessageBox.cs
- AssociationType.cs
- Pen.cs
- SafeNativeMethods.cs
- Logging.cs
- WorkflowInstance.cs
- ErrorFormatterPage.cs
- PartDesigner.cs
- InvokeProviderWrapper.cs
- UndoManager.cs
- CodeMemberField.cs
- ListDictionary.cs
- ProxyDataContractResolver.cs
- ExpressionBindingCollection.cs
- TextDataBindingHandler.cs
- IdentityHolder.cs
- WebConfigurationHostFileChange.cs
- DesigntimeLicenseContextSerializer.cs
- TracePayload.cs
- HtmlTitle.cs
- RtfFormatStack.cs
- CorrelationResolver.cs
- PackageProperties.cs
- SiteMembershipCondition.cs
- ITreeGenerator.cs