Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlILOptimizerVisitor.cs
- BamlMapTable.cs
- ProjectionCamera.cs
- SecurityCriticalDataForSet.cs
- Int32AnimationBase.cs
- DropDownList.cs
- ContactManager.cs
- CodeAttachEventStatement.cs
- CompiledQuery.cs
- CachedTypeface.cs
- DocumentViewerBaseAutomationPeer.cs
- XPathDocumentBuilder.cs
- CodeIdentifiers.cs
- ComponentDispatcherThread.cs
- Queue.cs
- ProfilePropertyNameValidator.cs
- DecoratedNameAttribute.cs
- SecUtil.cs
- HostedTransportConfigurationBase.cs
- TextEditorCopyPaste.cs
- FixedTextBuilder.cs
- TypeDescriptor.cs
- SystemUdpStatistics.cs
- BinaryNode.cs
- OleDbErrorCollection.cs
- altserialization.cs
- FlowDocumentFormatter.cs
- SqlDataAdapter.cs
- SQLByteStorage.cs
- RequestTimeoutManager.cs
- CaretElement.cs
- AnimationStorage.cs
- ToolStripRendererSwitcher.cs
- EmbeddedMailObjectsCollection.cs
- ArgumentNullException.cs
- PartitionResolver.cs
- XmlSiteMapProvider.cs
- ServiceEndpoint.cs
- ClientUtils.cs
- AnonymousIdentificationModule.cs
- NetworkStream.cs
- WebPartVerbsEventArgs.cs
- MenuScrollingVisibilityConverter.cs
- XmlComplianceUtil.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MasterPageParser.cs
- AsyncResult.cs
- ConfigurationValue.cs
- DataKeyArray.cs
- XmlReaderDelegator.cs
- AsyncPostBackTrigger.cs
- EmptyCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- PingReply.cs
- UTF32Encoding.cs
- DESCryptoServiceProvider.cs
- TdsParserStateObject.cs
- DateTimePicker.cs
- ComboBoxAutomationPeer.cs
- PrintDialog.cs
- ReferenceEqualityComparer.cs
- path.cs
- ProcessModelSection.cs
- NativeRecognizer.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ReliableChannelBinder.cs
- CodeRemoveEventStatement.cs
- CachedPathData.cs
- SqlDataSourceConnectionPanel.cs
- XmlILStorageConverter.cs
- ContainerFilterService.cs
- DeferredTextReference.cs
- ComponentRenameEvent.cs
- SqlUserDefinedAggregateAttribute.cs
- DefaultPrintController.cs
- HierarchicalDataSourceControl.cs
- DBConcurrencyException.cs
- FilterQuery.cs
- GridSplitterAutomationPeer.cs
- Baml2006Reader.cs
- ToggleButtonAutomationPeer.cs
- SmtpFailedRecipientException.cs
- TextRunCacheImp.cs
- FontConverter.cs
- RetrieveVirtualItemEventArgs.cs
- RadioButtonBaseAdapter.cs
- XmlMemberMapping.cs
- SchemaTypeEmitter.cs
- SafeEventLogReadHandle.cs
- ColorInterpolationModeValidation.cs
- DataObjectEventArgs.cs
- ImageMapEventArgs.cs
- PenContexts.cs
- manifestimages.cs
- TextFormatter.cs
- ParseNumbers.cs
- ResXFileRef.cs
- DispatcherOperation.cs
- Calendar.cs
- MD5Cng.cs