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
- FlowNode.cs
- SqlXmlStorage.cs
- PkcsUtils.cs
- Parameter.cs
- RuntimeWrappedException.cs
- UnsafeNativeMethods.cs
- UpDownEvent.cs
- RemoteWebConfigurationHost.cs
- XamlSerializerUtil.cs
- ModifiableIteratorCollection.cs
- CorruptStoreException.cs
- WebPartZone.cs
- Oid.cs
- ContentElement.cs
- VerificationAttribute.cs
- OleDbConnection.cs
- ContextMenu.cs
- ObjectSecurity.cs
- WebPartAuthorizationEventArgs.cs
- InfocardExtendedInformationCollection.cs
- BeginEvent.cs
- NotifyCollectionChangedEventArgs.cs
- XamlToRtfWriter.cs
- StronglyTypedResourceBuilder.cs
- TransactionChannelListener.cs
- DataControlFieldCell.cs
- PointCollection.cs
- ScopedMessagePartSpecification.cs
- InvalidEnumArgumentException.cs
- PackagePart.cs
- DataRecordInfo.cs
- followingquery.cs
- DropDownButton.cs
- KeyboardNavigation.cs
- DocumentViewerBase.cs
- MetadataPropertyvalue.cs
- TypeDescriptionProvider.cs
- FrameworkContentElementAutomationPeer.cs
- RelationshipDetailsRow.cs
- CompositeCollectionView.cs
- WindowsComboBox.cs
- InProcStateClientManager.cs
- KoreanCalendar.cs
- Activity.cs
- FatalException.cs
- DataControlLinkButton.cs
- LinkLabelLinkClickedEvent.cs
- OciLobLocator.cs
- WebPartConnectionsCloseVerb.cs
- DataPointer.cs
- ChangePassword.cs
- NetworkInformationException.cs
- QilReplaceVisitor.cs
- XmlSchemaFacet.cs
- BooleanFunctions.cs
- CharacterString.cs
- CollectionEditorDialog.cs
- VerticalAlignConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- LogFlushAsyncResult.cs
- LineServices.cs
- CodeMemberField.cs
- SQLChars.cs
- MemberHolder.cs
- CodeMemberEvent.cs
- ExceptionDetail.cs
- CornerRadius.cs
- MailAddressCollection.cs
- XPathExpr.cs
- PixelFormatConverter.cs
- FixedStringLookup.cs
- CanonicalXml.cs
- XmlSchemaSubstitutionGroup.cs
- precedingsibling.cs
- UICuesEvent.cs
- CompressEmulationStream.cs
- StateDesigner.CommentLayoutGlyph.cs
- SiteMapHierarchicalDataSourceView.cs
- TextElementEnumerator.cs
- WindowsImpersonationContext.cs
- ComponentSerializationService.cs
- EventDescriptor.cs
- SliderAutomationPeer.cs
- ToolBarPanel.cs
- Validator.cs
- DataGridViewColumnDesigner.cs
- CharacterBufferReference.cs
- GridViewEditEventArgs.cs
- RemotingConfiguration.cs
- XPathDocument.cs
- X509Certificate.cs
- SqlWriter.cs
- PageCodeDomTreeGenerator.cs
- AdRotator.cs
- DataServiceProviderWrapper.cs
- SSmlParser.cs
- CompletedAsyncResult.cs
- NCryptNative.cs
- ShaderEffect.cs
- OutputChannel.cs