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
- StorageFunctionMapping.cs
- Range.cs
- ToolBar.cs
- RowToParametersTransformer.cs
- ForceCopyBuildProvider.cs
- TypedReference.cs
- CustomError.cs
- XmlParserContext.cs
- ResXResourceSet.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- CompositeControl.cs
- DrawingContextDrawingContextWalker.cs
- ClientSideQueueItem.cs
- FacetChecker.cs
- MemberNameValidator.cs
- NonVisualControlAttribute.cs
- TextDecorations.cs
- BinaryObjectWriter.cs
- ProfessionalColors.cs
- SQLRoleProvider.cs
- PerformanceCounterPermission.cs
- ControlBuilderAttribute.cs
- CodeGen.cs
- RangeContentEnumerator.cs
- WebPartActionVerb.cs
- SamlAuthenticationStatement.cs
- PackagePartCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- SessionPageStateSection.cs
- Thickness.cs
- CancelEventArgs.cs
- TargetPerspective.cs
- Baml2006ReaderContext.cs
- LinkDescriptor.cs
- EmptyStringExpandableObjectConverter.cs
- ConfigurationException.cs
- Quaternion.cs
- RestHandlerFactory.cs
- TraceContextRecord.cs
- DataGridViewColumnEventArgs.cs
- XmlElementAttribute.cs
- WebPartAuthorizationEventArgs.cs
- HebrewNumber.cs
- DataQuery.cs
- UnauthorizedAccessException.cs
- DataGridCaption.cs
- dbenumerator.cs
- StringFormat.cs
- ListComponentEditorPage.cs
- rsa.cs
- ProfilePropertySettingsCollection.cs
- InvalidateEvent.cs
- AudioFileOut.cs
- ResourceProperty.cs
- StringExpressionSet.cs
- BufferBuilder.cs
- IisTraceWebEventProvider.cs
- C14NUtil.cs
- LineSegment.cs
- SignerInfo.cs
- WebControl.cs
- HwndAppCommandInputProvider.cs
- _SecureChannel.cs
- ConnectionsZoneAutoFormat.cs
- CounterSampleCalculator.cs
- ParagraphVisual.cs
- HttpProcessUtility.cs
- ViewgenContext.cs
- SqlRetyper.cs
- Html32TextWriter.cs
- ConnectionManagementElementCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- RecordBuilder.cs
- ToolStripSeparatorRenderEventArgs.cs
- _KerberosClient.cs
- ListItemCollection.cs
- MailHeaderInfo.cs
- DataControlField.cs
- SinglePageViewer.cs
- HwndMouseInputProvider.cs
- HtmlButton.cs
- ThemeInfoAttribute.cs
- PropertyPushdownHelper.cs
- FrameworkPropertyMetadata.cs
- ScriptIgnoreAttribute.cs
- MediaEntryAttribute.cs
- RelationshipWrapper.cs
- JoinCqlBlock.cs
- DBSqlParserColumn.cs
- QilExpression.cs
- NamespaceList.cs
- OutputWindow.cs
- ValueQuery.cs
- VoiceSynthesis.cs
- MessageDecoder.cs
- DbConnectionOptions.cs
- DynamicMethod.cs
- BrowserCapabilitiesCompiler.cs
- RegisteredDisposeScript.cs
- OleDbException.cs