Code:
/ DotNET / DotNET / 8.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
- ReadOnlyCollectionBase.cs
- StateManagedCollection.cs
- SoapEnumAttribute.cs
- ConfigurationValue.cs
- PlanCompiler.cs
- CorrelationHandle.cs
- DataGridViewComboBoxEditingControl.cs
- DialogResultConverter.cs
- TrackingDataItemValue.cs
- AsyncDataRequest.cs
- safelink.cs
- ReturnType.cs
- DescendantBaseQuery.cs
- RelationshipConstraintValidator.cs
- LayoutDump.cs
- ParameterCollection.cs
- AnnotationComponentChooser.cs
- VisualTreeUtils.cs
- SlipBehavior.cs
- UrlAuthorizationModule.cs
- ServiceMemoryGates.cs
- TableCellsCollectionEditor.cs
- ValidationRule.cs
- CornerRadiusConverter.cs
- DataGridViewCellEventArgs.cs
- TaskDesigner.cs
- LogFlushAsyncResult.cs
- TemplateApplicationHelper.cs
- LicenseContext.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- SqlDataAdapter.cs
- FaultBookmark.cs
- PopupRootAutomationPeer.cs
- GlobalEventManager.cs
- XmlSerializationReader.cs
- ScriptBehaviorDescriptor.cs
- MailWriter.cs
- SecurityBindingElement.cs
- XsdBuilder.cs
- UnsafeNativeMethods.cs
- SqlCharStream.cs
- TextTreeDeleteContentUndoUnit.cs
- COMException.cs
- BatchParser.cs
- Queue.cs
- OracleTransaction.cs
- TracePayload.cs
- WmlLiteralTextAdapter.cs
- InstallerTypeAttribute.cs
- VideoDrawing.cs
- SiteOfOriginContainer.cs
- FontResourceCache.cs
- GifBitmapDecoder.cs
- TypeConverter.cs
- XmlWrappingReader.cs
- PostBackOptions.cs
- PrintingPermission.cs
- FlowDocumentPage.cs
- HttpContext.cs
- DataServiceConfiguration.cs
- JsonFaultDetail.cs
- WebPartPersonalization.cs
- ApplicationActivator.cs
- ETagAttribute.cs
- QilBinary.cs
- ImageCodecInfo.cs
- TreeNodeMouseHoverEvent.cs
- TableDesigner.cs
- TaskFactory.cs
- Substitution.cs
- shaperfactory.cs
- StylusPoint.cs
- CustomServiceCredentials.cs
- FileSecurity.cs
- CancellationToken.cs
- SubpageParaClient.cs
- EventProviderWriter.cs
- SafeMILHandleMemoryPressure.cs
- Array.cs
- CurrentTimeZone.cs
- UIAgentCrashedException.cs
- StylusButtonEventArgs.cs
- HwndHostAutomationPeer.cs
- configsystem.cs
- InspectionWorker.cs
- SortedDictionary.cs
- RIPEMD160.cs
- TableFieldsEditor.cs
- EmbeddedMailObject.cs
- SessionStateModule.cs
- SystemColorTracker.cs
- ListViewHitTestInfo.cs
- ImageClickEventArgs.cs
- ClusterRegistryConfigurationProvider.cs
- Transform3D.cs
- OracleBFile.cs
- ScriptingScriptResourceHandlerSection.cs
- Pool.cs
- SortQuery.cs
- Page.cs