Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceCategoryAttribute.cs / 1 / ResourceCategoryAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI {
using System;
using System.ComponentModel;
using System.Reflection;
using System.Web.Resources;
using System.Web.Util;
[AttributeUsage(AttributeTargets.All)]
internal sealed class ResourceCategoryAttribute : CategoryAttribute {
internal ResourceCategoryAttribute(string category)
: base(category) {
}
public override object TypeId {
get {
return typeof(CategoryAttribute);
}
}
protected override string GetLocalizedString(string value) {
string localizedValue = base.GetLocalizedString(value);
if (localizedValue == null) {
localizedValue = AtlasWeb.ResourceManager.GetString("Category_" + value, AtlasWeb.Culture);
}
// This attribute is internal, and we should never have a missing resource string.
//
System.Diagnostics.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
- SerialReceived.cs
- TriggerBase.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- TextContainerHelper.cs
- DataGridViewElement.cs
- ObjectConverter.cs
- MimeObjectFactory.cs
- Membership.cs
- InterleavedZipPartStream.cs
- XmlMemberMapping.cs
- ColumnWidthChangingEvent.cs
- FormatSettings.cs
- _NestedSingleAsyncResult.cs
- DataBoundControlHelper.cs
- HtmlElementCollection.cs
- HitTestFilterBehavior.cs
- LinqExpressionNormalizer.cs
- ByteStack.cs
- WS2007FederationHttpBinding.cs
- MimePart.cs
- Message.cs
- TreeView.cs
- LinqTreeNodeEvaluator.cs
- MetadataArtifactLoaderResource.cs
- SqlParameterizer.cs
- TemplateApplicationHelper.cs
- SymmetricSecurityProtocolFactory.cs
- Rectangle.cs
- ModelEditingScope.cs
- Mappings.cs
- LoginName.cs
- BitStack.cs
- ToolTipAutomationPeer.cs
- COM2ExtendedTypeConverter.cs
- DataGridViewCellEventArgs.cs
- MediaSystem.cs
- RecognizedPhrase.cs
- XPathDocumentNavigator.cs
- StylusDownEventArgs.cs
- MexHttpBindingElement.cs
- StorageRoot.cs
- SemanticResultValue.cs
- DoubleAnimationUsingKeyFrames.cs
- FixedSOMPageConstructor.cs
- Utils.cs
- QueryStringParameter.cs
- ConfigXmlComment.cs
- WaitHandle.cs
- WindowsContainer.cs
- DesignerActionUI.cs
- SoapIgnoreAttribute.cs
- AuthenticationModuleElement.cs
- BamlTreeMap.cs
- ImplicitInputBrush.cs
- _TLSstream.cs
- StylusPlugInCollection.cs
- ISAPIApplicationHost.cs
- WorkflowApplicationIdleEventArgs.cs
- MultiTrigger.cs
- ProfileSettings.cs
- SocketAddress.cs
- WindowsFont.cs
- ExtendedPropertiesHandler.cs
- ContainerControl.cs
- ProfilePropertySettingsCollection.cs
- ImageConverter.cs
- EntityStoreSchemaGenerator.cs
- _HTTPDateParse.cs
- ShaperBuffers.cs
- mda.cs
- DrawingCollection.cs
- CounterCreationDataCollection.cs
- PageSettings.cs
- ChannelFactoryBase.cs
- HotSpotCollection.cs
- SqlReferenceCollection.cs
- PanelStyle.cs
- SQLByte.cs
- SamlAttribute.cs
- StateWorkerRequest.cs
- Sql8ConformanceChecker.cs
- ScalarType.cs
- ObjectReaderCompiler.cs
- PerfCounters.cs
- Triplet.cs
- BaseAppDomainProtocolHandler.cs
- DataGridCellItemAutomationPeer.cs
- ArraySet.cs
- SecurityKeyIdentifier.cs
- SoapAttributeAttribute.cs
- _BasicClient.cs
- AnnotationComponentChooser.cs
- Currency.cs
- ArcSegment.cs
- BitmapEffectState.cs
- SqlFactory.cs
- GenericTransactionFlowAttribute.cs
- UpdateExpressionVisitor.cs
- MobileListItem.cs
- EndpointDispatcherTable.cs